/* Beacon Türkiye — cinematic arrival system */
:root {
  --ink: #061322;
  --ink-2: #0a213c;
  --bosphorus: #0f4772;
  --signal: #e32636;
  --signal-dark: #b81625;
  --sky: #b9d9e8;
  --ice: #e8f2f6;
  --paper: #f4f1e9;
  --paper-2: #fbfaf6;
  --pure: #ffffff;
  --muted: #637282;
  --rule: rgba(6, 19, 34, .14);
  --shadow-cinematic: 0 42px 100px rgba(0, 8, 20, .42);
  --shadow-paper: 0 18px 44px rgba(6, 19, 34, .09);
}

html { max-width: 100%; overflow-x: hidden; background: var(--ink); }
body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
}

.wrap { max-width: 1320px; padding-inline: clamp(1.15rem, 4vw, 4.5rem); }

.skip-link {
  border-radius: 0;
  background: var(--pure);
  color: var(--ink);
}

/* Minimal flight-deck navigation. */
header.site {
  position: absolute;
  inset: 0 0 auto;
  z-index: 80;
  background: linear-gradient(180deg, rgba(2, 9, 18, .72), transparent);
  border: 0;
  backdrop-filter: none;
  color: var(--pure);
}

header.site .bar { min-height: 82px; padding-block: 1rem; }
.wordmark {
  position: relative;
  color: var(--pure);
  font-family: 'Syne', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-indent: .24em;
}
.wordmark::after {
  content: '';
  position: absolute;
  right: -.55rem;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
}
header.site nav { gap: clamp(.75rem, 1.5vw, 1.5rem); color: rgba(255,255,255,.68); }
header.site nav a {
  position: relative;
  font: 600 .7rem 'IBM Plex Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
header.site nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--pure);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
header.site nav a:hover { color: var(--pure); }
header.site nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-side { gap: .55rem; }
.langsw { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.langsw button {
  color: rgba(255,255,255,.72);
  font-family: 'IBM Plex Mono', monospace;
}
.langsw button[aria-pressed='true'] { background: var(--pure); color: var(--ink); }

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: .82rem 1.45rem;
  background: var(--ink);
  box-shadow: none;
  font: 750 .84rem 'Manrope', sans-serif;
  letter-spacing: -.01em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn::after { content: '↗'; font-family: sans-serif; font-size: 1rem; line-height: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(6,19,34,.18); }
.btn.red { background: var(--signal); }
.btn.red:hover { background: var(--signal-dark); }
.btn.ghost { border: 1px solid rgba(6,19,34,.22); background: transparent; color: var(--ink); }
header.site .btn.red { border: 1px solid rgba(255,255,255,.24); }
.btn.sm { min-height: 42px; padding: .58rem 1rem; font-size: .76rem; }

/* The hero is an arrival corridor, not a generic SaaS billboard. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(780px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 50%, rgba(61,130,169,.32), transparent 24%),
    radial-gradient(circle at 65% 115%, rgba(20,91,135,.8), transparent 40%),
    linear-gradient(146deg, #020711 0%, #071827 47%, #0a2c48 100%);
  color: var(--pure);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -24% -12%;
  z-index: -2;
  opacity: .52;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(123,183,218,.5) 0 1px, transparent 1.4px);
  background-size: 88px 88px, 133px 133px;
  background-position: 0 0, 31px 17px;
  transform: translateY(calc(var(--hero-scroll, 0) * 80px));
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(80vw, 980px);
  aspect-ratio: 1;
  right: -18vw;
  bottom: -62%;
  border-radius: 50%;
  border: 1px solid rgba(185,217,232,.28);
  background:
    linear-gradient(12deg, transparent 43%, rgba(255,255,255,.06) 43.4% 44%, transparent 44.4%),
    radial-gradient(circle at 35% 24%, rgba(150,208,229,.52), rgba(23,92,127,.2) 28%, #071523 72%);
  box-shadow: 0 0 0 70px rgba(149,207,229,.035), 0 0 120px rgba(53,149,198,.18);
  transform: translateY(calc(var(--hero-scroll, 0) * -65px));
}
.hero .grid {
  min-height: max(780px, 100svh);
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
  gap: clamp(2rem, 5vw, 7rem);
  padding-block: clamp(8.5rem, 16vh, 11rem) clamp(5rem, 9vh, 7rem);
}
.hero-copy { position: relative; z-index: 3; }
.kicker {
  gap: .75rem;
  color: rgba(255,255,255,.72);
  font: 600 .67rem 'IBM Plex Mono', monospace;
  letter-spacing: .15em;
}
.kicker::before {
  width: 7px;
  height: 7px;
  background: var(--signal);
  box-shadow: 0 0 16px var(--signal);
  animation: beacon-pulse 2s ease-in-out infinite;
}
@keyframes beacon-pulse { 50% { opacity: .35; transform: scale(.65); } }
h1.hero-h {
  max-width: 12ch;
  margin: clamp(1.2rem, 3vh, 2rem) 0 1.3rem;
  color: var(--pure);
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.25rem, 5.25vw, 6rem);
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: .91;
}
h1.hero-h em { color: var(--sky); font-style: normal; }
.hero-sub {
  max-width: 52ch;
  color: rgba(255,255,255,.72);
  font-size: clamp(.96rem, 1.08vw, 1.06rem);
  line-height: 1.7;
}
.hero-ctas { margin-top: 1.65rem; }
.hero .btn.ghost { border-color: rgba(255,255,255,.28); color: var(--pure); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.demo-access {
  margin-top: 1rem;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.58);
  font-family: 'IBM Plex Mono', monospace;
}
.demo-access b { color: var(--pure); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 660px;
  margin-top: clamp(2rem, 5vh, 3.4rem);
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.stat { min-width: 0; max-width: none; padding: 1rem; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.stat b {
  color: var(--pure);
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.stat span { display: block; margin-top: .55rem; color: rgba(255,255,255,.52); font: 500 .65rem/1.45 'IBM Plex Mono', monospace; }
.stat-source { color: rgba(255,255,255,.42); font-family: 'IBM Plex Mono', monospace; }
.hero-note {
  max-width: 64ch;
  margin-top: 1rem;
  padding: .82rem 1rem;
  border-color: rgba(255,255,255,.14);
  border-radius: 2px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.58);
  backdrop-filter: blur(10px);
}
.hero-note b { color: var(--pure); }

.flight-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.flight-field svg { position: absolute; inset: 7% 2% auto 40%; width: 68%; height: 72%; overflow: visible; opacity: .72; }
.flight-route { fill: none; stroke: rgba(185,217,232,.45); stroke-width: 1; stroke-dasharray: 7 11; animation: route-flow 18s linear infinite; }
.flight-route-solid { fill: none; stroke: rgba(227,38,54,.58); stroke-width: 1.2; stroke-dasharray: 1 90; animation: route-flow 7s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -180; } }
.flight-field .coordinate {
  position: absolute;
  color: rgba(255,255,255,.34);
  font: 500 .58rem 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
}
.flight-field .c1 { top: 18%; right: 4%; }
.flight-field .c2 { right: 8%; bottom: 12%; }
.flight-field .c3 { left: 4%; bottom: 4%; }

.phone-stage { padding: 1rem 0; transform: translateY(calc(var(--hero-scroll, 0) * -26px)); }
.phone-stage::before {
  inset: -2% -28%;
  border: 1px solid rgba(185,217,232,.2);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(71,157,197,.22), transparent 64%);
  filter: none;
  box-shadow: 0 0 0 38px rgba(185,217,232,.025), 0 0 0 95px rgba(185,217,232,.018);
}
.phone {
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg, #384554, #02060b 42%, #172332);
  box-shadow: var(--shadow-cinematic), inset 0 1px 2px rgba(255,255,255,.3);
}
.phone-caption { color: rgba(255,255,255,.52); font-family: 'IBM Plex Mono', monospace; }

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.54);
  font: 500 .6rem 'IBM Plex Mono', monospace;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ''; width: 1px; height: 55px; background: linear-gradient(var(--signal), transparent); }

/* Editorial information system. */
section.block { position: relative; padding: clamp(5rem, 11vw, 10rem) 0; }
section[id] { scroll-margin-top: 1rem; }
section.block, section.block.alt { background: var(--paper); }
section.block:nth-of-type(odd) { background: var(--paper-2); }
.sec-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--signal);
  font: 600 .67rem 'IBM Plex Mono', monospace;
  letter-spacing: .14em;
}
.sec-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h2.sec-h {
  max-width: 17ch;
  margin: 1rem 0 1.2rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.65rem, 5.8vw, 6.15rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .95;
}
.sec-sub { max-width: 66ch; color: var(--muted); font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.75; }

.cards { gap: 0; margin-top: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card {
  min-height: 245px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(1.35rem, 2.4vw, 2.35rem);
  background: transparent;
  box-shadow: none;
  transition: background .25s ease, transform .25s ease;
}
.card:hover { z-index: 1; background: var(--pure); transform: translateY(-4px); box-shadow: var(--shadow-paper); }
.card .ic {
  width: 42px;
  height: 42px;
  margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.card .ic.red { border-color: var(--signal); background: var(--signal); color: var(--pure); }
.card .ic.pale { background: var(--ice); }
.card h3 { max-width: 18ch; font: 700 1.08rem/1.2 'Syne', sans-serif; }
.card p { margin-top: .65rem; color: var(--muted); line-height: 1.65; }

#problem .wrap { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); column-gap: clamp(2rem,6vw,7rem); }
#problem .sec-kicker, #problem .sec-h, #problem .sec-sub { grid-column: 1; }
#problem .cards { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; grid-template-columns: 1fr; }
#problem .card { min-height: 210px; display: grid; grid-template-columns: 60px .72fr 1fr; align-items: start; gap: 1rem; }
#problem .card .ic { margin: 0; }
#problem .card p { margin: 0; }

#solution { overflow: hidden; color: var(--pure); background: var(--ink) !important; }
#solution::after {
  content: 'BEACON';
  position: absolute;
  right: -1vw;
  bottom: -4vw;
  color: rgba(255,255,255,.025);
  font: 800 clamp(8rem, 23vw, 25rem)/.7 'Syne', sans-serif;
  letter-spacing: -.1em;
}
#solution .sec-sub { color: rgba(255,255,255,.68); }
#solution .frame-quote { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--pure); }
#solution .cards { border-color: rgba(255,255,255,.16); }
#solution .card { border-color: rgba(255,255,255,.16); }
#solution .card:hover { background: rgba(255,255,255,.06); box-shadow: none; }
#solution .card h3 { color: var(--pure); }
#solution .card p { color: rgba(255,255,255,.58); }
#solution .card .ic { border-color: rgba(255,255,255,.26); color: var(--pure); }

#journey { background: var(--sky) !important; }
.steps { position: relative; gap: 0; margin-top: clamp(3rem,6vw,6rem); }
.steps::before { content: ''; position: absolute; top: 18px; right: 5%; left: 5%; height: 1px; background: rgba(6,19,34,.28); }
.step { position: relative; min-height: 290px; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 clamp(1rem,2vw,2rem) 0 0; }
.step::before {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-bottom: clamp(3rem,7vw,6rem);
  border: 1px solid var(--ink);
  background: var(--sky);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}
.step:first-child::before, .step:last-child::before { background: var(--signal); border-color: var(--signal); color: var(--pure); }
.step h3 { font: 700 1.15rem 'Syne', sans-serif; }
.step p { max-width: 27ch; margin-top: .65rem; color: rgba(6,19,34,.65); line-height: 1.65; }

#stay .frame-quote, .frame-quote { border-radius: 0; background: var(--ice); }
.split { gap: clamp(2.5rem, 7vw, 7rem); }
.maptile { position: relative; overflow: hidden; min-height: 430px; border-radius: 0; background: linear-gradient(160deg,#d9eaf1,#aacbdc); box-shadow: none; }
.maptile::before { content: '41° 00′ N  28° 58′ E'; position: absolute; top: 1rem; left: 1.2rem; color: rgba(6,19,34,.52); font: 500 .62rem 'IBM Plex Mono', monospace; }
.maptile::after { content: ''; position: absolute; inset: 8%; border: 1px solid rgba(6,19,34,.14); border-radius: 50%; }

section.block.navy, #emergency { background: var(--signal) !important; color: var(--pure); }
#emergency .sec-kicker { color: var(--pure); }
#emergency .sec-sub, #emergency .card p { color: rgba(255,255,255,.72); }
#emergency .cards { border-color: rgba(255,255,255,.22); }
#emergency .card { border-color: rgba(255,255,255,.22); background: transparent; }
#emergency .card:hover { background: rgba(255,255,255,.08); box-shadow: none; }
#emergency .card h3 { color: var(--pure); font-size: clamp(2.5rem,5vw,5rem); }
#emergency .consent-rail { border-radius: 0; }
#emergency .btn.red { background: var(--pure); color: var(--signal); }

.status-table { border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
.status-table th { padding: 1rem 1.2rem; background: var(--ink); font: 600 .7rem 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.status-table td { padding: 1.1rem 1.2rem; }
.tag-live { color: #177555; }
.tag-demo { color: var(--signal); }
.readiness-grid { gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.readiness-card { border-top: 0; }

#gov { background: var(--ink) !important; color: var(--pure); }
#gov .sec-sub { color: rgba(255,255,255,.64); }
#gov .frame-quote { background: rgba(255,255,255,.06); color: var(--pure); }
#gov .status-table { border-color: rgba(255,255,255,.14); }

.pilot-box { border: 0; border-radius: 0; padding: clamp(1.6rem,4vw,4rem); box-shadow: var(--shadow-paper); }
.pilot-box h3 { font: 700 clamp(1.45rem,2.4vw,2.4rem)/1.05 'Syne', sans-serif; }

footer.site { position: relative; overflow: hidden; padding: 5rem 0 4rem; background: #02070d; }
footer.site::after { content: 'BEACON'; position: absolute; right: -1rem; bottom: -2.2rem; color: rgba(255,255,255,.035); font: 800 clamp(6rem,18vw,16rem)/.7 'Syne',sans-serif; }
footer.site .links, footer.site p { position: relative; z-index: 1; }

.mission-cta {
  position: fixed;
  right: 50%;
  bottom: 1.35rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 50px;
  padding: .52rem .56rem .52rem 1.2rem;
  border: 1px solid rgba(6,19,34,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0,8,20,.2);
  backdrop-filter: blur(15px);
  font: 750 .78rem 'Manrope', sans-serif;
  text-decoration: none;
  transform: translateX(50%);
}
.mission-cta span:last-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--pure); }
.mission-cta:hover span:last-child { background: var(--signal); }
.mission-cta:focus-visible { outline: 3px solid rgba(227,38,54,.4); outline-offset: 3px; }

.reveal { opacity: 1; transform: none; }
.reveal.in { animation: reveal-rise .65s cubic-bezier(.2,.75,.25,1) both; }
@keyframes reveal-rise { from { opacity: .12; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  header.site nav { display: none; }
  .mobile-nav {
    display: flex;
    position: absolute;
    top: 82px;
    z-index: 55;
    width: 100%;
    border-color: rgba(255,255,255,.14);
    background: rgba(2,9,18,.72);
    backdrop-filter: blur(14px);
  }
  .mobile-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .42rem .72rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    background: rgba(255,255,255,.07);
    color: var(--pure);
    font: 600 .68rem 'IBM Plex Mono',monospace;
    text-decoration: none;
  }
  .hero .grid {
    grid-template-columns: minmax(0,1fr) 320px;
    gap: clamp(1.25rem, 3vw, 2.25rem);
  }
  .phone-stage { display: flex; }
  .phone-caption { display: block; }
  h1.hero-h { font-size: clamp(3.15rem, 5.25vw, 4.75rem); }
  .hero-sub { font-size: .95rem; }
}

@media (max-width: 820px) {
  header.site .bar { min-height: 70px; }
  .mobile-nav { top: 70px; }
  .hero, .hero .grid { min-height: 100svh; }
  .hero .grid { grid-template-columns: 1fr; padding-top: 10.5rem; }
  .hero-copy { max-width: 760px; }
  h1.hero-h { max-width: 12ch; font-size: clamp(3.1rem, 8.3vw, 4.25rem); }
  .phone-stage, .phone-caption { display: none; }
  .flight-field svg { inset: 12% -20% auto 25%; width: 110%; opacity: .42; }
  #problem .wrap { display: block; }
  #problem .cards { margin-top: 3rem; }
  #problem .card { grid-template-columns: 56px 1fr; }
  #problem .card p { grid-column: 2; }
  .cards.c4, .readiness-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body::before { display: none; }
  .wrap { padding-inline: 1.05rem; }
  header.site .bar { padding-block: .6rem; }
  .wordmark { font-size: .92rem; }
  header.site .btn.sm { display: none; }
  .mobile-nav { padding-inline: 1rem; }
  .hero .grid { padding-block: 10rem 6rem; }
  h1.hero-h { font-size: clamp(2.8rem,12vw,3.6rem); }
  .hero-sub { font-size: .94rem; }
  .hero-ctas { display: grid; }
  .hero .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { padding: .85rem 0; }
  .stat + .stat { padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .scroll-cue { display: none; }
  .flight-field .coordinate { display: none; }
  section.block { padding-block: 5.2rem; }
  h2.sec-h { font-size: clamp(2.6rem,13vw,4rem); }
  .cards.c2, .cards.c3, .cards.c4, .readiness-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  #problem .card { display: block; }
  #problem .card .ic { margin-bottom: 2rem; }
  #problem .card p { margin-top: .7rem; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 0; right: auto; bottom: 0; left: 18px; width: 1px; height: auto; }
  .step { min-height: 0; padding: 0 0 3.2rem 3.8rem; }
  .step::before { position: absolute; left: 0; margin: 0; }
  .pilot-box { grid-template-columns: 1fr; }
  .mission-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker::before, .flight-route, .flight-route-solid { animation: none; }
  .phone-stage, .hero::before, .hero::after { transform: none; }
  .reveal.in { animation: none; }
}
