/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; color: var(--c-text); background: var(--c-bg); line-height: 1.7; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

:root {
  --c-bg: #ffffff;
  --c-bg2: #f5f5f7;
  --c-text: #2a2a2a;
  --c-text2: #6b6b6b;
  --c-blue: #0066ff;
  --c-lime: #c8ff00;
  --c-dark: #0a0a0a;
  --c-border: #e0e0e0;
  --c-card: #fafafa;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --rail-w: 64px;
  --radius: 16px;
  --radius-sm: 8px;
}

/* RAIL NAV */
.t-rail { position: fixed; left: 0; top: 0; width: var(--rail-w); height: 100vh; background: var(--c-dark); display: flex; flex-direction: column; align-items: center; padding: 20px 0; z-index: 200; gap: 6px; }
.t-rail-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--c-lime); margin-bottom: 24px; letter-spacing: -0.04em; }
.t-rail a { writing-mode: vertical-rl; text-orientation: mixed; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 14px 6px; transition: color 0.3s, background 0.3s; border-radius: 6px; }
.t-rail a:hover, .t-rail a.active { color: var(--c-lime); background: rgba(200,255,0,0.08); }
.t-rail-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.t-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-blue); }

.t-body { margin-left: var(--rail-w); }

/* TOP BAR */
.t-topbar { background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 10px 32px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(255,255,255,0.9); }
.t-topbar-left { font-size: 0.75rem; color: var(--c-text2); letter-spacing: 0.05em; text-transform: uppercase; }
.t-topbar-right { display: flex; gap: 16px; }
.t-topbar-right a { font-size: 0.78rem; font-weight: 600; color: var(--c-text); transition: color 0.2s; }
.t-topbar-right a:hover { color: var(--c-blue); }

/* MOBILE NAV */
.t-mob-header { display: none; background: var(--c-dark); padding: 14px 20px; position: sticky; top: 0; z-index: 200; justify-content: space-between; align-items: center; }
.t-mob-logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--c-lime); }
.t-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.t-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.t-mob-menu { display: none; background: var(--c-dark); padding: 0 20px 20px; }
.t-mob-menu.open { display: block; }
.t-mob-menu a { display: block; padding: 10px 0; color: rgba(255,255,255,0.7); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.t-mob-menu a:hover { color: var(--c-lime); }

/* HERO SPLIT */
.t-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.t-hero-text { padding: 80px 48px 60px; display: flex; flex-direction: column; justify-content: center; }
.t-hero-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--c-dark); color: var(--c-lime); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 16px; border-radius: 40px; margin-bottom: 24px; width: fit-content; }
.t-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.1; color: var(--c-dark); margin-bottom: 20px; letter-spacing: -0.03em; }
.t-hero h1 em { font-style: normal; color: var(--c-blue); }
.t-hero-lead { font-size: 1.05rem; color: var(--c-text2); max-width: 480px; margin-bottom: 28px; }
.t-hero-author { display: flex; align-items: center; gap: 12px; }
.t-hero-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c-blue), var(--c-lime)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-dark); font-size: 0.85rem; }
.t-hero-meta { font-size: 0.82rem; }
.t-hero-name { font-weight: 700; color: var(--c-dark); }
.t-hero-role { color: var(--c-text2); }
.t-hero-img { position: relative; overflow: hidden; }
.t-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.t-hero-img::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,102,255,0.15) 0%, rgba(200,255,0,0.1) 100%); mix-blend-mode: multiply; }
.t-hero-geo { position: absolute; bottom: -30px; left: -30px; width: 200px; height: 200px; border: 3px solid var(--c-lime); border-radius: 50%; opacity: 0.4; pointer-events: none; }

/* MAIN LAYOUT */
.t-main { max-width: 1200px; margin: 0 auto; padding: 60px 32px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.t-content { min-width: 0; }

/* SECTION LABELS */
.t-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-blue); margin-bottom: 8px; }
.t-heading { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--c-dark); line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em; }
.t-subhead { color: var(--c-text2); font-size: 0.95rem; margin-bottom: 32px; }

/* ARTICLE TEXT */
.t-prose { margin-bottom: 28px; }
.t-prose p { margin-bottom: 16px; color: var(--c-text); font-size: 1rem; }
.t-prose h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--c-dark); margin: 36px 0 14px; padding-left: 16px; border-left: 4px solid var(--c-blue); letter-spacing: -0.02em; }
.t-prose h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--c-dark); margin: 24px 0 10px; }

/* IMAGE BLOCKS */
.t-img-block { margin: 32px 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.t-img-block img { width: 100%; height: 340px; object-fit: cover; }
.t-img-cap { font-size: 0.75rem; color: var(--c-text2); padding: 10px 0; font-style: italic; }
.t-img-overlay { position: absolute; top: 16px; right: 16px; background: var(--c-lime); color: var(--c-dark); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 40px; }

/* HABIT CARDS */
.t-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 36px; }
.t-card { background: var(--c-bg2); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid transparent; }
.t-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--c-blue); }
.t-card-num { font-family: var(--font-head); font-size: 3rem; font-weight: 900; color: rgba(0,102,255,0.08); line-height: 1; position: absolute; top: 8px; right: 12px; }
.t-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--c-dark); margin-bottom: 8px; }
.t-card p { font-size: 0.85rem; color: var(--c-text2); line-height: 1.6; }
.t-card-tag { display: inline-block; margin-top: 10px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-blue); background: rgba(0,102,255,0.08); padding: 3px 10px; border-radius: 20px; }
.t-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.t-card.lime { background: var(--c-lime); }
.t-card.lime .t-card-num { color: rgba(0,0,0,0.06); }
.t-card.lime h3, .t-card.lime p { color: var(--c-dark); }
.t-card.dark { background: var(--c-dark); }
.t-card.dark h3, .t-card.dark p { color: rgba(255,255,255,0.85); }
.t-card.dark .t-card-num { color: rgba(255,255,255,0.05); }
.t-card.dark .t-card-tag { color: var(--c-lime); background: rgba(200,255,0,0.12); }

/* FLOATING NOTE */
.t-note { background: var(--c-lime); border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0; position: relative; }
.t-note::before { content: '//'; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: rgba(0,0,0,0.15); position: absolute; top: 8px; right: 14px; }
.t-note p { font-size: 0.88rem; color: var(--c-dark); font-weight: 500; }
.t-note-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(0,0,0,0.4); margin-bottom: 4px; }

/* QUOTE */
.t-quote { margin: 36px 0; padding: 28px 32px; border-left: 4px solid var(--c-lime); background: var(--c-bg2); border-radius: 0 var(--radius) var(--radius) 0; }
.t-quote blockquote { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--c-dark); line-height: 1.5; font-style: italic; }
.t-quote cite { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--c-text2); font-style: normal; }

/* HIGHLIGHT BOX */
.t-highlight { background: var(--c-dark); border-radius: var(--radius); padding: 32px; color: #fff; margin: 32px 0; position: relative; overflow: hidden; }
.t-highlight::after { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--c-blue); opacity: 0.1; }
.t-highlight h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--c-lime); margin-bottom: 12px; }
.t-highlight p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.t-highlight ul { margin: 14px 0 0 20px; }
.t-highlight li { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 6px; padding-left: 8px; }
.t-highlight li::marker { color: var(--c-lime); }

/* REC CARDS */
.t-rec { margin: 32px 0; }
.t-rec-list { display: flex; flex-direction: column; gap: 14px; }
.t-rec-item { display: flex; gap: 16px; align-items: flex-start; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 18px; transition: border-color 0.3s, transform 0.2s; }
.t-rec-item:hover { border-color: var(--c-blue); transform: translateX(4px); }
.t-rec-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--c-bg2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.t-rec-item h4 { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; color: var(--c-dark); margin-bottom: 4px; }
.t-rec-item p { font-size: 0.82rem; color: var(--c-text2); }

/* CONCLUSION */
.t-conclusion { background: linear-gradient(135deg, var(--c-blue), #003faa); border-radius: var(--radius); padding: 36px; color: #fff; margin: 36px 0; }
.t-conclusion h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 14px; }
.t-conclusion p { font-size: 0.95rem; opacity: 0.88; margin-bottom: 12px; }

/* SIDEBAR */
.t-sidebar { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 20px; }
.t-sb-block { background: var(--c-bg2); border-radius: var(--radius); padding: 22px; }
.t-sb-block h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--c-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-blue); }
.t-sb-item { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.t-sb-item:last-child { border-bottom: none; }
.t-sb-item a { font-size: 0.85rem; font-weight: 600; color: var(--c-text); display: block; transition: color 0.2s; }
.t-sb-item a:hover { color: var(--c-blue); }
.t-sb-cat { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-blue); margin-top: 3px; }
.t-sb-tip { background: var(--c-lime); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 8px; }
.t-sb-tip p { font-size: 0.82rem; color: var(--c-dark); }
.t-sb-tip-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(0,0,0,0.35); margin-bottom: 4px; }
.t-sb-quote { background: var(--c-dark); color: rgba(255,255,255,0.8); border-radius: var(--radius); padding: 20px; font-style: italic; font-size: 0.9rem; line-height: 1.6; }
.t-sb-quote footer { margin-top: 8px; font-style: normal; font-size: 0.72rem; color: var(--c-lime); }
.t-sb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-sb-tag { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 20px; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; color: var(--c-text2); transition: all 0.2s; }
.t-sb-tag:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.t-sb-nl { background: var(--c-dark); border-radius: var(--radius); padding: 24px; text-align: center; }
.t-sb-nl h4 { color: var(--c-lime); border-bottom-color: rgba(200,255,0,0.2); }
.t-sb-nl p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.t-sb-nl input[type=email] { width: 100%; padding: 10px 14px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.85rem; margin-bottom: 8px; outline: none; font-family: var(--font-body); }
.t-sb-nl input[type=email]::placeholder { color: rgba(255,255,255,0.3); }
.t-sb-nl button { width: 100%; padding: 10px; background: var(--c-lime); color: var(--c-dark); border: none; border-radius: 40px; font-weight: 800; font-size: 0.82rem; cursor: pointer; font-family: var(--font-body); transition: opacity 0.2s; letter-spacing: 0.05em; text-transform: uppercase; }
.t-sb-nl button:hover { opacity: 0.85; }

/* FOOTER */
.t-footer { background: var(--c-dark); color: rgba(255,255,255,0.55); padding: 48px 32px 24px; margin-left: var(--rail-w); }
.t-footer-inner { max-width: 1200px; margin: 0 auto; }
.t-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.t-footer-brand { font-family: var(--font-head); }
.t-footer-brand .logo { font-size: 1.6rem; font-weight: 800; color: var(--c-lime); margin-bottom: 10px; }
.t-footer-brand p { font-size: 0.82rem; line-height: 1.7; max-width: 280px; }
.t-footer h5 { color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.t-footer a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 8px; transition: color 0.2s; }
.t-footer a:hover { color: var(--c-lime); }
.t-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; }
.t-footer-disclaimer { margin-top: 16px; font-size: 0.72rem; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 700px; }

/* COOKIE BANNER */
.t-cookie-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 999; max-width: 380px; }
#cookie-close { display: none; }
#cookie-close:checked + .t-cookie { display: none; }
.t-cookie { background: var(--c-dark); color: rgba(255,255,255,0.8); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); font-size: 0.82rem; line-height: 1.5; }
.t-cookie p { margin-bottom: 14px; }
.t-cookie-btns { display: flex; gap: 8px; }
.t-cookie-btns label, .t-cookie-btns a { padding: 8px 18px; border-radius: 40px; font-size: 0.78rem; font-weight: 700; cursor: pointer; text-align: center; transition: opacity 0.2s; display: inline-block; }
.t-cookie-accept { background: var(--c-lime); color: var(--c-dark); border: none; font-family: var(--font-body); }
.t-cookie-reject { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.t-cookie-link { color: var(--c-blue) !important; font-size: 0.75rem; margin-top: 8px; display: inline-block !important; }

/* LEGAL PAGES */
.t-legal { max-width: 800px; margin: 0 auto; padding: 60px 32px; }
.t-legal h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--c-dark); margin-bottom: 24px; }
.t-legal h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--c-dark); margin: 28px 0 10px; }
.t-legal p { color: var(--c-text); margin-bottom: 12px; font-size: 0.92rem; }
.t-legal-date { font-size: 0.8rem; color: var(--c-text2); margin-bottom: 28px; }

/* SUCCESS */
.t-success { text-align: center; padding: 120px 32px; max-width: 600px; margin: 0 auto; }
.t-success h1 { font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; color: var(--c-dark); margin-bottom: 16px; }
.t-success p { color: var(--c-text2); margin-bottom: 28px; font-size: 1.05rem; }
.t-success-icon { font-size: 4rem; margin-bottom: 20px; }
.t-btn { display: inline-block; background: var(--c-blue); color: #fff; padding: 12px 32px; border-radius: 40px; font-weight: 700; font-size: 0.88rem; transition: opacity 0.2s; }
.t-btn:hover { opacity: 0.85; }
.t-btn-lime { background: var(--c-lime); color: var(--c-dark); }

/* 404 */
.t-404 { text-align: center; padding: 100px 32px; }
.t-404 h1 { font-family: var(--font-head); font-size: 8rem; font-weight: 900; color: var(--c-blue); line-height: 1; opacity: 0.2; }
.t-404 h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--c-dark); margin-bottom: 16px; }
.t-404 p { color: var(--c-text2); margin-bottom: 28px; }
.t-404-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.t-404-links a { background: var(--c-bg2); padding: 10px 22px; border-radius: 40px; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.t-404-links a:hover { background: var(--c-blue); color: #fff; }

/* ARTICLE LIST */
.t-art-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.t-art-preview { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--c-bg2); border-radius: var(--radius-sm); overflow: hidden; transition: transform 0.2s; }
.t-art-preview:hover { transform: translateX(4px); }
.t-art-preview img { width: 120px; height: 100%; object-fit: cover; }
.t-art-preview-body { padding: 14px 14px 14px 0; }
.t-art-preview h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--c-dark); margin-bottom: 4px; }
.t-art-preview p { font-size: 0.78rem; color: var(--c-text2); }

/* INLINE FORM */
.t-inline-form { display: flex; gap: 8px; margin: 20px 0; }
.t-inline-form input[type=email] { flex: 1; padding: 10px 16px; border: 2px solid var(--c-border); border-radius: 40px; font-size: 0.88rem; outline: none; font-family: var(--font-body); transition: border-color 0.2s; }
.t-inline-form input[type=email]:focus { border-color: var(--c-blue); }
.t-inline-form button { padding: 10px 24px; background: var(--c-blue); color: #fff; border: none; border-radius: 40px; font-weight: 700; font-size: 0.85rem; cursor: pointer; font-family: var(--font-body); white-space: nowrap; }

/* ANIMATIONS */
@keyframes t-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.t-anim { animation: t-fade-up 0.5s ease forwards; }
.t-anim-d1 { animation-delay: 0.1s; opacity: 0; }
.t-anim-d2 { animation-delay: 0.2s; opacity: 0; }
.t-anim-d3 { animation-delay: 0.3s; opacity: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .t-rail { display: none; }
  .t-body { margin-left: 0; }
  .t-footer { margin-left: 0; }
  .t-mob-header { display: flex; }
  .t-main { grid-template-columns: 1fr; }
  .t-sidebar { position: static; }
}
@media (max-width: 768px) {
  .t-hero { grid-template-columns: 1fr; }
  .t-hero-img { height: 280px; }
  .t-hero-img img { height: 280px; }
  .t-hero-text { padding: 40px 20px; }
  .t-cards { grid-template-columns: 1fr; }
  .t-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .t-main { padding: 36px 16px; gap: 32px; }
  .t-topbar { padding: 10px 16px; }
  .t-footer { padding: 36px 16px 20px; }
  .t-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .t-inline-form { flex-direction: column; }
  .t-cookie-wrap { left: 12px; right: 12px; max-width: 100%; bottom: 12px; }
  .t-art-preview { grid-template-columns: 1fr; }
  .t-art-preview img { height: 160px; width: 100%; }
}
@media (max-width: 480px) {
  .t-hero h1 { font-size: 1.7rem; }
  .t-heading { font-size: 1.4rem; }
  .t-legal { padding: 40px 16px; }
  .t-success { padding: 80px 16px; }
}
