/* Derece · proje 211 tanıtım sayfası */
@font-face { font-family: "Host Grotesk"; src: url("../app/fonts/host-grotesk-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; src: url("../app/fonts/host-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bedstead"; src: url("../assets/fonts/bedstead.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #07080a; --s1: #0d0f13; --s2: #12151b; --s3: #1a1e26; --line: #1f2430;
  --fg: #eef1f6; --mute: #8a93a6; --cy: #22e0ff; --ye: #ffd400; --rd: #ff3b5c; --gn: #27e38a; --tb: #0000ff;
  --font: "Host Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "Bedstead", ui-monospace, Menlo, monospace;
  --w: min(1120px, 100% - 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--cy); }
.mute { color: var(--mute); }

/* ---- açılış: teletekst mozaiğinden çözülme */
.tune { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; background: #000; pointer-events: none; transition: opacity .6s ease; }
.tune.off { opacity: 0; }
.tune.gone { display: none; }

/* ---- üst çubuk */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 14px calc((100% - var(--w)) / 2); backdrop-filter: blur(14px); background: linear-gradient(rgba(7,8,10,.85), rgba(7,8,10,.4)); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.solid { border-bottom-color: var(--line); }
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand .tt { font-family: var(--mono); font-size: 13px; color: var(--ye); background: var(--tb); padding: 1px 6px; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; color: var(--mute); }
.nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--s2); color: var(--fg); cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: #2c3340; }
.btn.pri { background: var(--cy); color: #04131a; border-color: transparent; }
.btn.pri:hover { background: #5fe9ff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* ---- hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; overflow: hidden; }
.ecg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-in { position: relative; width: var(--w); max-width: 760px; text-align: left; }
.eyebrow { font-family: var(--mono); color: var(--ye); font-size: 15px; letter-spacing: .04em; margin: 0 0 10px; }
.title { font-size: clamp(84px, 18vw, 220px); line-height: .9; font-weight: 800; letter-spacing: -.05em; margin: 0 0 24px; background: linear-gradient(180deg, #fff, #b9c2d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.4vw, 24px); color: var(--mute); max-width: 620px; margin: 0 0 28px; }
.lead b { color: var(--fg); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta.center { justify-content: center; margin-top: 28px; }
.pulse-tag { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--mute); }
.pulse-tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--gn); box-shadow: 0 0 0 0 rgba(39,227,138,.6); animation: beat 20s infinite; }
@keyframes beat { 0%, 3% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39,227,138,.6); } 6% { transform: scale(1.5); box-shadow: 0 0 0 12px rgba(39,227,138,0); } 9%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39,227,138,0); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cy); animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---- bölümler, ortaya çıkma */
.sec { width: var(--w); margin: 0 auto; padding: 96px 0; }
.sec-h { max-width: 680px; margin-bottom: 36px; }
.sec-h .k { font-family: var(--mono); color: var(--cy); font-size: 14px; }
.sec-h h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.02; margin: 6px 0 14px; font-weight: 800; }
.sec-h p { font-size: 18px; color: var(--mute); margin: 0; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---- senaryo */
.scen { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.tile { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 18px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; transition: border-color .4s, box-shadow .4s; }
.tile.crit { border-color: rgba(255,59,92,.5); box-shadow: 0 0 0 4px rgba(255,59,92,.08); }
.tile.off { border-color: #2a2f3a; }
.glyph { width: 48px; height: 48px; border-radius: 12px; background: var(--s3); color: var(--cy); display: grid; place-items: center; }
.glyph svg { width: 24px; height: 24px; }
.tile-t b { display: block; font-size: 17px; }
.tile-t small { color: var(--mute); font-size: 13px; }
.lamp { width: 12px; height: 12px; border-radius: 50%; background: #3a4150; transition: background .4s, box-shadow .4s; }
.lamp.ok { background: var(--gn); box-shadow: 0 0 10px var(--gn); }
.lamp.warn { background: var(--ye); box-shadow: 0 0 10px var(--ye); }
.lamp.crit { background: var(--rd); box-shadow: 0 0 12px var(--rd); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.meters { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--mute); padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.meters b { color: var(--fg); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.scen-r { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.clockline { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.clockline .big { font-family: var(--mono); font-size: 44px; color: var(--cy); font-variant-numeric: tabular-nums; line-height: 1; }
.clockline b { color: var(--fg); }
.log { list-style: none; margin: 0 0 14px; padding: 0; min-height: 150px; font-size: 14px; }
.log li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }
.log li .t { font-family: var(--mono); color: var(--mute); }
.log li.w .t { color: var(--ye); } .log li.c .t { color: var(--rd); } .log li.g .t { color: var(--gn); }
@keyframes pop { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.scen-b { display: flex; gap: 10px; }

/* ---- akış */
.flow { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wire { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
#p-down { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pkt { fill: var(--cy); filter: drop-shadow(0 0 6px var(--cy)); }
.pkt.down { fill: var(--ye); filter: drop-shadow(0 0 6px var(--ye)); }
.wire-l { font-family: var(--mono); font-size: 13px; fill: var(--mute); }
.node { position: relative; text-align: center; padding: 26px 14px; background: var(--s2); border: 1px solid var(--line); border-radius: 16px; }
.node .nk { font-family: var(--mono); font-size: 12px; color: var(--cy); letter-spacing: .08em; text-transform: uppercase; }
.node b { display: block; font-size: 26px; letter-spacing: -.03em; margin: 6px 0 2px; }
.node small { color: var(--mute); }

/* ---- kartlar */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1200px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transform-style: preserve-3d; transition: transform .2s ease, border-color .3s; will-change: transform; }
.card:hover { border-color: #2c3340; }
.card .glyph { margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.card .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34,224,255,.12), transparent 60%); }
.card { position: relative; overflow: hidden; }

/* ---- rakamlar */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num { padding: 26px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--s2), var(--s1)); }
.num b { display: block; font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--cy); font-variant-numeric: tabular-nums; }
.num b i { font-style: normal; color: var(--mute); font-weight: 400; }
.num small { display: block; color: var(--mute); margin-top: 8px; font-size: 14px; }

/* ---- Kule önizleme */
.kule { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.kule-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--s1); }
.brand-s { font-weight: 800; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--ye); border: 1px solid var(--ye); padding: 1px 6px; margin-left: 6px; }
.kule-clock { font-family: var(--mono); color: var(--ye); }
.kule-body { display: grid; grid-template-columns: 160px 1fr 220px; min-height: 300px; }
.kule-rail { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mute); }
.kule-rail span { padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.kule-rail .on { background: var(--s2); color: var(--fg); box-shadow: inset 3px 0 0 var(--cy); }
.badge { background: var(--rd); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; font-weight: 700; }
.kule-main { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { display: block; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: 26px; letter-spacing: -.03em; }
.kpi b small { font-size: 12px; color: var(--mute); margin-left: 4px; }
.kpi.ok b { color: var(--gn); } .kpi.warn b { color: var(--ye); }
.ktiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ktile { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ktile b { display: block; font-size: 14px; } .ktile small { color: var(--mute); font-size: 12px; }
.ktile .lamp { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; }
.kule-tick { border-left: 1px solid var(--line); padding: 14px; font-size: 13px; }
.kule-tick h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.kule-tick div > div { padding: 8px 0; border-bottom: 1px solid var(--line); animation: pop .4s both; }
.kule-tick small { display: block; color: var(--mute); font-family: var(--mono); font-size: 11px; }

/* ---- alt */
.foot { width: var(--w); margin: 40px auto 60px; display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; }
.foot a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .nav { display: none; }
  .scen, .cards, .nums { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; } .flow-svg { display: none; }
  .kule-body { grid-template-columns: 1fr; } .kule-rail, .kule-tick { display: none; } .ktiles { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .scen, .cards, .nums { grid-template-columns: 1fr; } .sec { padding: 64px 0; } .foot { flex-direction: column; gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .wire, .pulse-tag i, .scroll-hint span, .lamp.crit { animation: none; }
  .tune { display: none; }
}
