/* Karanlık mod: html[data-theme=dark]. Tema seçimi head'deki küçük script ve .theme-toggle ile yapılır. */
.theme-toggle{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text);font-size:16px;line-height:1;transition:background .2s,border-color .2s,transform .3s}
.theme-toggle:hover{border-color:#c5222d;transform:rotate(-20deg)}
.theme-toggle .t-sun{display:none}
html[data-theme=dark] .theme-toggle .t-sun{display:inline}
html[data-theme=dark] .theme-toggle .t-moon{display:none}
html.theme-anim *{transition:background-color .35s,color .35s,border-color .35s!important}

html[data-theme=dark]{
  --bg:#0e1014;--paper:#0e1014;--surface:#161920;--surface-2:#1c2028;--text:#eceef2;--ink:#eceef2;--muted:#a4abb7;--border:#2a2f39;
  --red:#ff5b65;--red-bg:#d62732;color-scheme:dark
}
html[data-theme=dark] body{background:var(--bg);color:var(--text)}
html[data-theme=dark] ::selection{background:#d62732;color:#fff}
html[data-theme=dark] .brand-logo{content:url(logo-dark.svg)}

/* Kırmızı yazılar koyu zeminde daha parlak ton (okunabilirlik) */
html[data-theme=dark] .hero h1>span:not(.period),html[data-theme=dark] .hero h1 .period,html[data-theme=dark] h2 span,
html[data-theme=dark] .eyebrow,html[data-theme=dark] .solutions .eyebrow,html[data-theme=dark] .approach .eyebrow,html[data-theme=dark] .hero .eyebrow,html[data-theme=dark] .connection .eyebrow,html[data-theme=dark] .project .eyebrow,
html[data-theme=dark] .flow-status,html[data-theme=dark] .flow-icon,html[data-theme=dark] .steps article>span,html[data-theme=dark] .project-note>span,
html[data-theme=dark] .node-top .node-symbol,html[data-theme=dark] .node-top strong,html[data-theme=dark] .node-right .node-symbol,html[data-theme=dark] .node-right strong,html[data-theme=dark] .node-bottom .node-symbol,html[data-theme=dark] .node-bottom strong,
html[data-theme=dark] body .journey-caption small,html[data-theme=dark] .marquee-group>span,html[data-theme=dark] .cookie-banner a,html[data-theme=dark] .document-main .eyebrow{color:var(--red)}
html[data-theme=dark] .header nav>a:hover,html[data-theme=dark] .fan-actions>a:hover,html[data-theme=dark] .contact-details a:hover,html[data-theme=dark] .header-contact a:hover{color:var(--red)}

/* İkincil yazılar */
html[data-theme=dark] .header nav,html[data-theme=dark] .hero-description,html[data-theme=dark] .hero-location,html[data-theme=dark] .hero-bottom,html[data-theme=dark] .scene-caption,html[data-theme=dark] .brand small,
html[data-theme=dark] .solutions .section-intro>p,html[data-theme=dark] .approach .section-intro>p,html[data-theme=dark] .section-intro>p,html[data-theme=dark] .service p,html[data-theme=dark] .service-number,html[data-theme=dark] .service-bottom,
html[data-theme=dark] .flow-row small,html[data-theme=dark] .flow-note,html[data-theme=dark] .flow-heading,html[data-theme=dark] .flow-row>span:last-child,html[data-theme=dark] .steps p,
html[data-theme=dark] .form-note,html[data-theme=dark] .project-note p,html[data-theme=dark] footer,html[data-theme=dark] .contact-details,html[data-theme=dark] .cookie-banner p,
html[data-theme=dark] .fan-intro>p:not(.eyebrow),html[data-theme=dark] .fan-intro small,html[data-theme=dark] .fan-actions p,html[data-theme=dark] .fan-actions>a:not(.button),html[data-theme=dark] .story-tile p,
html[data-theme=dark] .marquee-toggle,html[data-theme=dark] .process-showcase .steps article>span,html[data-theme=dark] body .journey-caption p,html[data-theme=dark] .glass-node small,
html[data-theme=dark] .document-main p,html[data-theme=dark] .document-main li,html[data-theme=dark] .connection-copy>p:not(.eyebrow),html[data-theme=dark] .project-copy>p:not(.eyebrow){color:var(--muted)}
html[data-theme=dark] body .journey-caption strong,html[data-theme=dark] .footer-brand,html[data-theme=dark] .project-note strong,html[data-theme=dark] form label,html[data-theme=dark] .story-words>span{color:var(--text)!important}

/* Butonlar ve menü */
html[data-theme=dark] .primary{background:var(--red-bg);color:#fff;box-shadow:0 8px 26px #d6273233}
html[data-theme=dark] .primary:hover{background:#e8343f}
html[data-theme=dark] .nav-contact,html[data-theme=dark] .menu-toggle{border-color:#3a404b;color:var(--text)}
html[data-theme=dark] .status-dot,html[data-theme=dark] .node-led,html[data-theme=dark] .scene-point{background:var(--red);box-shadow:0 0 12px #ff5b6566}
@media(max-width:760px){html[data-theme=dark] .header nav{background:#14171dfa;border-color:#2f3540}}

/* Hero 3D sahnesi */
html[data-theme=dark] body .hero-light,html[data-theme=dark] body.motion-enabled .hero-light{background:radial-gradient(ellipse at 73% 40%,#d627321c,transparent 58%),linear-gradient(120deg,#0e1014,#13161c)}
html[data-theme=dark] .grid-floor{background-image:linear-gradient(#ff5b651c 1px,transparent 1px),linear-gradient(90deg,#ff5b651c 1px,transparent 1px)}
html[data-theme=dark] body .orbit.orbit-front,html[data-theme=dark] body .orbit.orbit-back,html[data-theme=dark] body .orbit.orbit-deep,html[data-theme=dark] body .orbit.orbit-far{border-color:color-mix(in srgb,#d62732 var(--ring-red,35%),#2b3039);border-top-color:color-mix(in srgb,#d62732 var(--ring-red,35%),#4a515d);border-bottom-color:color-mix(in srgb,#d62732 var(--ring-red,35%),#181b21);box-shadow:inset 2px 2px 3px #ffffff18,inset -9px -5px 15px #00000088,6px 13px 10px #00000055}
html[data-theme=dark] .core{background:linear-gradient(135deg,#5d636e,#2c3038 35%,#121418 80%);border-color:#ffffff22;box-shadow:9px 13px 0 #08090b,10px 14px 0 1px #2a2e36,20px 30px 45px #000a,inset 1px 2px 2px #ffffff30}
html[data-theme=dark] .core-mark{color:#f2f3f5;text-shadow:2px 3px #000}
html[data-theme=dark] .glass-node{background:linear-gradient(115deg,#252a33d0,#171a20c0);border-color:#ffffff1a;box-shadow:0 15px 40px #0008,inset 0 1px #ffffff14}
html[data-theme=dark] .glass-node strong{color:var(--text)}
html[data-theme=dark] body .journey-progress{background:#ffffff18}

/* Bölüm zeminleri: katmanlı koyu tonlar */
html[data-theme=dark] .solutions,html[data-theme=dark] body.motion-enabled .solutions,html[data-theme=dark] .motion-enabled .solutions{background:var(--bg);color:var(--text);border-color:var(--border)}
html[data-theme=dark] .connection{background:radial-gradient(ellipse at 85% 50%,#d627320f,transparent 60%),#121419}
html[data-theme=dark] .approach,html[data-theme=dark] body .process-showcase,html[data-theme=dark] .expertise-fan{background:var(--bg);color:var(--text);border-color:var(--border)}
html[data-theme=dark] .scroll-story,html[data-theme=dark] .service-marquee{background:#121419;border-color:var(--border)}

/* Kartlar */
html[data-theme=dark] .service,html[data-theme=dark] .service:nth-child(3n+2),html[data-theme=dark] .service:nth-child(3n),html[data-theme=dark] .service-featured{background:var(--surface);border-color:var(--border);border-top-color:#3a404b;box-shadow:0 10px 30px #0005}
html[data-theme=dark] .service:hover,html[data-theme=dark] .service:focus-visible{background:var(--surface-2);border-color:#d6273288;box-shadow:0 16px 36px #0008,0 0 0 1px #d6273233}
html[data-theme=dark] .service-bottom{border-color:var(--border)}
html[data-theme=dark] .flow-demo,html[data-theme=dark] .project{background:linear-gradient(130deg,#181b22,#121419);border-color:var(--border);box-shadow:0 25px 60px #0007}
html[data-theme=dark] .flow-row{background:var(--surface-2);border-color:#2f3540}
html[data-theme=dark] .flow-icon{border-color:#3a404b}
html[data-theme=dark] .flow-row.md-lit{box-shadow:0 0 0 1px #ff5b6540,0 10px 30px #0006}
html[data-theme=dark] .steps article{border-color:#3a404b}
html[data-theme=dark] .steps article:before{background:var(--red)}
html[data-theme=dark] .process-showcase .steps article{background:var(--surface);border-color:var(--border)}
html[data-theme=dark] .process-showcase .steps article.process-active{background:var(--red-bg);border-color:var(--red-bg)}
html[data-theme=dark] .process-showcase .steps article.process-active p,html[data-theme=dark] .process-showcase .steps article.process-active>span{color:#fff}
html[data-theme=dark] .process-line{background:#2a2f39}
html[data-theme=dark] .process-icon{border-color:#3a404b}

/* Vitrin (showcase) parçaları */
html[data-theme=dark] .marquee-group .outline-word{-webkit-text-stroke:1px #8c93a0}
html[data-theme=dark] .marquee-group i{color:#5a606b}
html[data-theme=dark] .fan-card{background:linear-gradient(145deg,#1f232b,#15181e);border-color:#2f3540;box-shadow:0 18px 40px #0008}
html[data-theme=dark] .fan-main{background:#1c2028;border-top-color:var(--red-bg)}
html[data-theme=dark] .fan-side{background:#15181e}
html[data-theme=dark] .mini-window{background:#0f1116;border-color:#363c47;box-shadow:0 12px 22px #0007}
html[data-theme=dark] .mini-window>b,html[data-theme=dark] .code-lines i{background:#4b525e}
html[data-theme=dark] .mini-stats i{background:#22262e}
html[data-theme=dark] .mini-chart{border-color:#2f3540}
html[data-theme=dark] .mini-lines,html[data-theme=dark] .mini-web-grid i{background:#2a2f39}
html[data-theme=dark] .mini-web-title{background:#c9ccd2}
html[data-theme=dark] .diagram-nodes i{border-color:#5a606b}
html[data-theme=dark] .diagram-flow i{background:#22262e;border-color:#4b525e}
html[data-theme=dark] .story-tile{background:var(--surface);border-color:var(--border)}
html[data-theme=dark] .story-tile>div{border-color:#2f3540}
html[data-theme=dark] .story-tile:last-child{background:var(--red-bg);border-color:var(--red-bg)}
html[data-theme=dark] .story-tile:last-child p{color:#fff}
html[data-theme=dark] .story-tile:last-child>div{border-color:#ffffff55}

/* Form, çerez bandı, belge sayfaları */
html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f1116;border-color:#363c47;color:var(--text)}
html[data-theme=dark] textarea::placeholder{color:#6c7380}
html[data-theme=dark] .cookie-banner{background:#171a20f7;color:var(--text);border-color:#2f3540;box-shadow:0 14px 60px #000a}
html[data-theme=dark] .cookie-actions button{background:#22262e;color:var(--text);border-color:#3a404b}
html[data-theme=dark] .cookie-actions button:hover{background:#2b3039}
html[data-theme=dark] .document-main .notice{background:var(--surface)}
html[data-theme=dark] .form-error{color:#ffb3b8!important}
html[data-theme=dark] a:focus-visible,html[data-theme=dark] button:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible{outline-color:var(--red)}
html[data-theme=dark] #md-loader{background:var(--bg)}
html[data-theme=dark] .md-progress{background:linear-gradient(90deg,#d62732,#ff8a92)}

/* ---- Mobil iyileştirmeler ---- */
@media(max-width:760px){
  .theme-toggle{width:40px;height:40px;margin-left:auto;margin-right:10px}
  .hero-copy{width:100%}
  h1{font-size:clamp(36px,10.5vw,48px);letter-spacing:-1.6px;line-height:1.12}
  h2{font-size:clamp(27px,7.6vw,34px);letter-spacing:-1px}
  .hero-description{font-size:15px;line-height:1.75}
  .hero-actions{flex-wrap:wrap;gap:14px 24px}
  .hero-actions .button{width:100%;min-height:50px}
  .section{padding:64px 6%}
  .section-intro{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:30px}
  .section-intro>p,.service p,.steps p,.connection-copy>p:not(.eyebrow),.project-copy>p:not(.eyebrow){font-size:15px;line-height:1.75}
  .service-grid{grid-template-columns:1fr;gap:14px}
  .service{padding:24px 22px 18px}
  .service h3{font-size:19px}
  .connection,.project,.scroll-story,.expertise-fan{grid-template-columns:1fr;gap:36px}
  .project{margin:0 4% 60px;padding:34px 6%}
  .project h2{font-size:28px}
  .steps{grid-template-columns:1fr;gap:18px;margin-top:34px}
  .flow-demo{padding:18px}
  select,textarea{font-size:16px;padding:13px 14px}
  .button{min-height:48px}
  .wa-float{bottom:calc(84px + env(safe-area-inset-bottom))}
  img,svg{max-width:100%}
}
@media(max-width:380px){h1{font-size:34px}.header{margin:0 5%}}
html,body{overflow-x:clip}
@media(min-width:761px){.header nav{margin-left:auto}.theme-toggle{margin-left:22px}}
@media(max-width:760px){.brand{order:0}.theme-toggle{order:1}.menu-toggle{order:2}}
.header>a:not(.brand){margin-left:auto}
.header>a:not(.brand)+.theme-toggle{margin-left:16px;margin-right:0}
@media(max-width:760px){
  #main h2{font-size:clamp(27px,7.6vw,34px)!important;line-height:1.22;letter-spacing:-1px}
  #main h2 *{font-size:inherit!important}
  #main .story-copy h2{font-size:clamp(24px,6.6vw,28px)!important}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){.hero .visual{transform:scale(.6)!important;transform-origin:bottom center}}
.fan-intro .eyebrow,.story-copy .eyebrow,.service-marquee .eyebrow{color:#c5222d}html[data-theme=dark] .fan-intro .eyebrow,html[data-theme=dark] .story-copy .eyebrow{color:var(--red)}
