:root{
  --ink-900:#0B1220;
  --ink-950:#070B12;
  --graphite-800:#141B26;
  --graphite-700:#1B2432;
  --brass-500:#D9A441;
  --brass-300:#EAC888;
  --paper-050:#F5F3EA;
  --steel-400:#5E86B3;
  --signal-600:#C23B33;
  --glass-bg: rgba(20,27,38,0.55);
  --glass-border: rgba(217,164,65,0.18);
  --ease: cubic-bezier(0.16,1,0.3,1);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink-900);
  color:var(--paper-050);
  font-family:'Inter', sans-serif;
  overflow-x:hidden;
  cursor:none;
}
::selection{ background:var(--brass-500); color:var(--ink-950); }

h1,h2,h3{ font-family:'Space Grotesk', sans-serif; font-weight:700; letter-spacing:-0.02em; line-height:1.05; }
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.08em; text-transform:uppercase; font-size:0.75rem; color:var(--brass-500); }

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font:inherit; cursor:pointer; }

/* ---------- custom cursor ---------- */
#cursor-dot, #cursor-ring{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  border-radius:50%; transform:translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
#cursor-dot{ width:6px; height:6px; background:var(--brass-500); }
#cursor-ring{ width:32px; height:32px; border:1px solid rgba(217,164,65,0.5); }
#cursor-ring.active{ width:56px; height:56px; border-color:var(--brass-500); background:rgba(217,164,65,0.08); }
@media (hover:none){ #cursor-dot,#cursor-ring{ display:none; } body{ cursor:auto; } }

/* ---------- scan line system ---------- */
.scan-line{
  position:relative; left:0; width:100%; height:2px;
  background:linear-gradient(90deg, transparent, var(--brass-500) 15%, var(--brass-300) 50%, var(--brass-500) 85%, transparent);
  box-shadow:0 0 24px 4px rgba(217,164,65,0.55), 0 0 60px 12px rgba(217,164,65,0.15);
  opacity:0; pointer-events:none;
}
.seam{ position:relative; height:1px; }

#preloader{
  position:fixed; inset:0; background:var(--ink-950); z-index:10000;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:20px;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
#preloader.done{ opacity:0; visibility:hidden; }
.preload-mark{ font-family:'Space Grotesk'; font-weight:700; font-size:2rem; letter-spacing:-0.01em; opacity:0; animation:fadeIn .5s ease forwards; }
.preload-mark span{ color:var(--brass-500); }
#preloader .scan-line{ width:180px; opacity:1; animation:preSweep 1.1s var(--ease) forwards; }
@keyframes fadeIn{ to{opacity:1} }
@keyframes preSweep{
  0%{ transform:translateY(-30px) scaleX(0.2); opacity:0; }
  40%{ transform:translateY(0) scaleX(1); opacity:1; }
  100%{ transform:translateY(46px) scaleX(1); opacity:0; }
}

/* ---------- nav ---------- */
header{
  position:fixed; top:0; left:0; width:100%; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:20px clamp(24px,5vw,64px);
  transition:background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom:1px solid transparent;
}
header.scrolled{
  background:var(--glass-bg); backdrop-filter:blur(20px) saturate(140%);
  border-bottom:1px solid var(--glass-border);
}
.logo{ font-family:'Space Grotesk'; font-weight:700; font-size:1.15rem; letter-spacing:-0.01em; }
.logo span{ color:var(--brass-500); }
nav ul{ list-style:none; display:flex; gap:36px; }
nav a{ font-size:0.875rem; color:var(--paper-050); opacity:0.75; position:relative; }
nav a::after{ content:''; position:absolute; left:0; bottom:-6px; width:0; height:1px; background:var(--brass-500); transition:width .25s var(--ease); }
nav a:hover{ opacity:1; }
nav a:hover::after{ width:100%; }
nav a.active{ opacity:1; }
nav a.active::after{ width:100%; }
.nav-cta{
  font-family:'IBM Plex Mono'; font-size:0.75rem; letter-spacing:0.05em; text-transform:uppercase;
  padding:10px 20px; border:1px solid var(--brass-500); border-radius:2px; color:var(--brass-500);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.nav-cta:hover{ background:var(--brass-500); color:var(--ink-950); }
.navlinks, .nav-cta{ display:flex; }
@media (max-width:900px){ .navlinks{ display:none; } }

.menu-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px; }
.menu-toggle span{ width:22px; height:1px; background:var(--paper-050); }
@media (max-width:900px){ .menu-toggle{ display:flex; } .nav-cta{ display:none; } }

#mobileMenu{
  position:fixed; inset:0; z-index:600; background:var(--ink-950);
  display:flex; flex-direction:column; justify-content:center; gap:28px; padding:48px;
  opacity:0; visibility:hidden; transform:translateY(-12px);
  transition:opacity .35s var(--ease), visibility .35s var(--ease), transform .35s var(--ease);
}
#mobileMenu.open{ opacity:1; visibility:visible; transform:translateY(0); }
#mobileMenu a{ font-family:'Space Grotesk'; font-size:1.6rem; font-weight:600; }
#mobileMenu .mono{ margin-top:20px; }

/* ---------- page hero (interior pages) ---------- */
.page-hero{ padding:calc(120px + 2vw) clamp(24px,5vw,64px) 80px; border-bottom:1px solid var(--glass-border); position:relative; overflow:hidden; }
.page-hero::after{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:0.5;
  background:radial-gradient(ellipse at 20% 0%, rgba(94,134,179,0.12), transparent 55%);
}
.page-hero .section-inner{ position:relative; z-index:1; }
.breadcrumb{ display:flex; gap:8px; align-items:center; font-family:'IBM Plex Mono'; font-size:0.75rem; color:rgba(245,243,234,0.45); margin-bottom:24px; }
.breadcrumb a:hover{ color:var(--brass-500); }
.page-title{ font-size:clamp(2.4rem,5vw,4rem); max-width:820px; margin-bottom:20px; }
.page-lead{ font-size:1.05rem; color:rgba(245,243,234,0.65); max-width:560px; line-height:1.7; }

/* ---------- section shell ---------- */
section{ position:relative; padding:clamp(96px,12vw,180px) clamp(24px,5vw,64px); }
.section-inner{ max-width:1280px; margin:0 auto; }
.section-tag{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.section-tag::before{ content:''; width:24px; height:1px; background:var(--brass-500); }
.section-title{ font-size:clamp(2rem,3.2vw,3rem); max-width:640px; margin-bottom:20px; }
.section-lead{ color:rgba(245,243,234,0.65); max-width:560px; font-size:1.05rem; line-height:1.7; }
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- buttons ---------- */
.btn{
  position:relative; overflow:hidden; border:none; background:none; color:inherit;
  font-family:'IBM Plex Mono'; font-size:0.8rem; letter-spacing:0.05em; text-transform:uppercase;
  padding:16px 30px; border-radius:2px; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  transition:transform .25s var(--ease); cursor:pointer;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--brass-500); color:var(--ink-950); }
.btn-primary::before{
  content:''; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform:skewX(-20deg); transition:left .5s var(--ease);
}
.btn-primary:hover::before{ left:130%; }
.btn-ghost{ border:1px solid rgba(245,243,234,0.3); color:var(--paper-050); }
.btn-ghost:hover{ border-color:var(--brass-500); color:var(--brass-500); }
.btn[disabled]{ opacity:0.5; cursor:not-allowed; }

/* ---------- brand strip ---------- */
#brands{ padding:56px clamp(24px,5vw,64px); border-top:1px solid var(--glass-border); border-bottom:1px solid var(--glass-border); overflow:hidden; }
.brand-track{ display:flex; gap:80px; width:max-content; animation:scrollX 22s linear infinite; }
.brand-track span{ font-family:'IBM Plex Mono'; font-size:1.1rem; letter-spacing:0.12em; color:rgba(245,243,234,0.35); white-space:nowrap; }
#brands:hover .brand-track{ animation-play-state:paused; }
@keyframes scrollX{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- services grid ---------- */
.grid-services{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1px; margin-top:56px; background:var(--glass-border); border:1px solid var(--glass-border); }
.service-card{ background:var(--ink-900); padding:34px 28px; position:relative; transition:background .3s var(--ease), transform .3s var(--ease); }
.service-card:hover{ background:var(--graphite-800); transform:translateY(-4px); }
.service-card .icon{ width:36px; height:36px; margin-bottom:20px; color:var(--steel-400); transition:color .3s; }
.service-card:hover .icon{ color:var(--brass-500); }
.service-card h3{ font-size:1.05rem; margin-bottom:10px; font-weight:600; }
.service-card p{ font-size:0.875rem; color:rgba(245,243,234,0.55); line-height:1.6; }

/* ---------- why us ---------- */
#neden-asil{ background:var(--graphite-800); }
.why-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; margin-top:56px; align-items:start; }
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr; } }
.why-list{ list-style:none; display:flex; flex-direction:column; }
.why-list li{ display:flex; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--glass-border); opacity:0.25; transition:opacity .4s var(--ease); }
.why-list li.in{ opacity:1; }
.why-list .check{ width:20px; height:20px; flex:none; color:var(--brass-500); }
.why-list span{ font-size:1rem; }
.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--glass-border); border:1px solid var(--glass-border); }
.stat-card{ background:var(--ink-900); padding:28px; }
.stat-card b{ display:block; font-family:'Space Grotesk'; font-size:2rem; color:var(--brass-500); margin-bottom:6px; }
.stat-card span{ font-size:0.8rem; color:rgba(245,243,234,0.55); }

/* ---------- product cards / rail ---------- */
.product-rail{ display:flex; gap:24px; overflow-x:auto; margin-top:56px; padding-bottom:12px; scroll-snap-type:x mandatory; }
.product-rail::-webkit-scrollbar{ height:4px; }
.product-rail::-webkit-scrollbar-thumb{ background:var(--brass-500); }
.product-card{
  flex:0 0 min(340px,80vw); scroll-snap-align:start;
  background:var(--glass-bg); border:1px solid var(--glass-border); backdrop-filter:blur(20px) saturate(140%);
  border-radius:4px; padding:28px; transition:transform .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover{ transform:translateY(-6px) rotateX(2deg); border-color:var(--brass-500); }
.product-card.static{ flex:none; width:auto; }
.product-card .tag{ font-family:'IBM Plex Mono'; font-size:0.7rem; color:var(--steel-400); letter-spacing:0.08em; text-transform:uppercase; }
.product-card h3{ font-size:1.3rem; margin:12px 0 18px; }
.product-card .specs{ list-style:none; font-family:'IBM Plex Mono'; font-size:0.78rem; color:rgba(245,243,234,0.65); display:flex; flex-direction:column; gap:8px; }
.product-card .specs li{ display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed rgba(245,243,234,0.12); padding-bottom:8px; }
.product-card .specs li b{ color:var(--paper-050); font-weight:500; text-align:right; }
.product-card a.btn{ margin-top:20px; width:100%; }

/* ---------- process ---------- */
.process-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:64px; }
@media (max-width:900px){ .process-grid{ grid-template-columns:1fr; } }
.process-card{ text-align:left; padding:32px 0; border-top:1px solid var(--glass-border); position:relative; }
.process-card .mono{ display:block; margin-bottom:18px; }
.process-card h3{ font-size:1.4rem; margin-bottom:12px; }
.process-card p{ font-size:0.9rem; color:rgba(245,243,234,0.6); line-height:1.65; }

/* ---------- numbered step list (service detail pages) ---------- */
.step-list{ counter-reset:step; margin-top:56px; display:flex; flex-direction:column; }
.step-item{ counter-increment:step; display:grid; grid-template-columns:80px 1fr; gap:24px; padding:32px 0; border-top:1px solid var(--glass-border); }
.step-item:last-child{ border-bottom:1px solid var(--glass-border); }
.step-item::before{ content:counter(step,decimal-leading-zero); font-family:'IBM Plex Mono'; font-size:1.4rem; color:var(--brass-500); }
.step-item h3{ font-size:1.2rem; margin-bottom:8px; }
.step-item p{ font-size:0.92rem; color:rgba(245,243,234,0.6); max-width:560px; line-height:1.7; }

/* ---------- table (spec / pricing) ---------- */
.spec-table{ width:100%; border-collapse:collapse; margin-top:24px; font-size:0.92rem; }
.spec-table tr{ border-bottom:1px solid var(--glass-border); }
.spec-table td{ padding:16px 12px; }
.spec-table td:first-child{ color:rgba(245,243,234,0.55); font-family:'IBM Plex Mono'; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; width:40%; }
.spec-table td:last-child{ font-weight:500; }

/* ---------- faq ---------- */
.faq-item{ border-bottom:1px solid var(--glass-border); }
.faq-q{ display:flex; justify-content:space-between; align-items:center; padding:26px 0; cursor:pointer; gap:20px; }
.faq-q h3{ font-size:1.05rem; font-weight:500; font-family:'Inter'; }
.faq-q .plus{ width:18px; height:18px; position:relative; flex:none; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background:var(--brass-500); transition:transform .3s var(--ease); }
.faq-q .plus::before{ width:100%; height:1px; top:50%; left:0; }
.faq-q .plus::after{ width:1px; height:100%; left:50%; top:0; }
.faq-item.open .plus::after{ transform:scaleY(0); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a p{ padding-bottom:26px; color:rgba(245,243,234,0.6); font-size:0.92rem; line-height:1.7; max-width:640px; }

/* ---------- form ---------- */
.form-panel{
  background:var(--glass-bg); border:1px solid var(--glass-border); backdrop-filter:blur(20px) saturate(140%);
  border-radius:6px; padding:clamp(28px,4vw,48px);
}
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }
.field{ position:relative; display:flex; flex-direction:column; }
.field.full{ grid-column:1 / -1; }
.field label{ font-family:'IBM Plex Mono'; font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase; color:rgba(245,243,234,0.5); margin-bottom:8px; }
.field input, .field select, .field textarea{
  background:transparent; border:none; border-bottom:1px solid rgba(245,243,234,0.25);
  color:var(--paper-050); font-family:'Inter'; font-size:0.95rem; padding:10px 2px; outline:none;
  transition:border-color .25s var(--ease);
}
.field select{ appearance:none; cursor:pointer; }
.field select option{ background:var(--graphite-800); color:var(--paper-050); }
.field textarea{ resize:vertical; min-height:80px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--brass-500); }
.field .err{ font-size:0.75rem; color:var(--signal-600); margin-top:6px; min-height:16px; }
.form-note{ font-size:0.78rem; color:rgba(245,243,234,0.4); margin-top:20px; line-height:1.6; }
.form-success{
  display:none; text-align:center; padding:20px 0;
}
.form-success.show{ display:block; }
.form-success .check-wrap{
  width:56px; height:56px; border-radius:50%; border:1px solid var(--brass-500); margin:0 auto 20px;
  display:flex; align-items:center; justify-content:center;
}
.form-success svg{ width:24px; height:24px; color:var(--brass-500); }

/* ---------- info cards (contact page) ---------- */
.info-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px; background:var(--glass-border); border:1px solid var(--glass-border); margin-bottom:56px; }
.info-card{ background:var(--ink-900); padding:28px; }
.info-card .icon{ width:28px; height:28px; color:var(--brass-500); margin-bottom:16px; }
.info-card h3{ font-size:0.95rem; font-weight:600; margin-bottom:8px; }
.info-card p{ font-size:0.875rem; color:rgba(245,243,234,0.6); line-height:1.6; }
.info-card a:hover{ color:var(--brass-500); }

.map-frame{
  width:100%; aspect-ratio:16/7; border:1px solid var(--glass-border); border-radius:4px;
  background:var(--graphite-800); display:flex; align-items:center; justify-content:center;
  color:rgba(245,243,234,0.35); font-family:'IBM Plex Mono'; font-size:0.8rem; overflow:hidden; position:relative;
}
.map-frame iframe{ width:100%; height:100%; border:0; filter:grayscale(0.3) invert(0.92) contrast(0.9); }

/* ---------- CTA ---------- */
#cta{ background:var(--ink-950); text-align:center; }
.contact-row{ display:flex; justify-content:center; gap:28px; margin-top:24px; flex-wrap:wrap; }
.contact-row a{ font-size:0.85rem; color:rgba(245,243,234,0.6); }
.contact-row a:hover{ color:var(--brass-500); }

/* ---------- sticky mobile CTA bar ---------- */
.mobile-cta-bar{
  display:none; position:fixed; bottom:0; left:0; width:100%; z-index:400;
  background:var(--glass-bg); backdrop-filter:blur(20px) saturate(140%); border-top:1px solid var(--glass-border);
  padding:12px clamp(16px,4vw,24px); gap:10px;
}
@media (max-width:768px){ .mobile-cta-bar{ display:flex; } body{ padding-bottom:70px; } }
.mobile-cta-bar a{
  flex:1; text-align:center; padding:12px; border-radius:2px; font-family:'IBM Plex Mono'; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em;
}
.mobile-cta-bar a.call{ background:var(--brass-500); color:var(--ink-950); }
.mobile-cta-bar a.wa{ border:1px solid var(--glass-border); color:var(--paper-050); }

/* ---------- mobile hero legibility (design system 3.7: simplify 3D below 768px) ---------- */
@media (max-width:768px){
  #hero-canvas{ opacity:0.55; }
  #hero .hero-vignette, #hero > div[style*="radial-gradient"]{ background:radial-gradient(ellipse at 60% 35%, transparent 15%, var(--ink-900) 78%) !important; }
}

footer{ padding:48px clamp(24px,5vw,64px); border-top:1px solid var(--glass-border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
footer p{ font-size:0.8rem; color:rgba(245,243,234,0.4); }
footer .foot-links{ display:flex; gap:24px; list-style:none; }
footer .foot-links a{ font-size:0.8rem; color:rgba(245,243,234,0.5); }
footer .foot-links a:hover{ color:var(--brass-500); }
