/* EdgeAdaptics website. Dark, self-contained, no external requests. */

@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/Sora-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/Sora-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --cyan: #22d3ee;
  --blue: #4f7bff;
  --indigo: #7c5cff;
  --edge: linear-gradient(115deg, #22d3ee 0%, #4f7bff 50%, #a78bfa 100%);
  --aurora: linear-gradient(120deg, #7b5cff 0%, #d0409a 55%, #ffb547 100%);
  --bg: #05070d;
  --surface: #0c111c;
  --surface-2: #111827;
  --line: rgba(148, 178, 255, .1);
  --line-strong: rgba(148, 178, 255, .2);
  --text: #eef3ff;
  --muted: #9aa6c3;
  --faint: #6f7b99;
  --accent: #67e8f9;
  --display: "Sora", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(45% 40% at 12% 0%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(40% 40% at 88% 6%, rgba(124, 92, 255, .2), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(148, 178, 255, .16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%);
}
::selection { background: rgba(34, 211, 238, .3); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 7, 13, .72); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.brand span b { font-weight: 700; background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.main { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
nav.main a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
nav.main a.cta { color: #031018; background: var(--edge); margin-left: 8px; padding: 9px 18px; }
nav.main a.cta:hover { filter: brightness(1.08); }
@media (max-width: 760px) { nav.main a:not(.cta) { display: none; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.4vw, 88px); letter-spacing: -.045em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 660px; text-wrap: pretty; }
.grad { background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 700 16px/1 var(--body); text-decoration: none; color: var(--text);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  transition: transform .2s, background .2s;
}
.btn:hover { color: var(--text); background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.btn.primary { border: 0; color: #031018; background: var(--edge); box-shadow: 0 18px 50px -18px rgba(34, 211, 238, .7); }
.btn.primary:hover { color: #031018; }
.btn.mana { border: 0; color: #fff; background: var(--aurora); box-shadow: 0 18px 50px -18px rgba(190, 70, 200, .8); }
.btn.mana:hover { color: #fff; }
.btn svg { width: 19px; height: 19px; }

section { padding: clamp(72px, 10vw, 124px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Hero */
.hero { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(56px, 8vw, 96px); position: relative; }
.hero h1 { max-width: 980px; }
.hero .lead { max-width: 700px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stats div { background: rgba(12, 17, 28, .9); padding: 22px 24px; }
.stats b { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14.5px; }

/* Flagship */
.flagship {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 32px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(194, 51, 138, .28), transparent 65%),
    radial-gradient(60% 80% at 0% 100%, rgba(109, 74, 255, .3), transparent 65%),
    #0d0a18;
  border: 1px solid rgba(194, 160, 255, .22);
}
.flagship .label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.flagship .label img { width: 44px; height: 44px; }
.flagship .label b { font: 700 26px/1 var(--display); background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flagship .label span { font: 700 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ffd59a; background: rgba(255, 181, 71, .12); padding: 6px 10px; border-radius: 999px; }
.flagship h2 { font-size: clamp(30px, 3.8vw, 46px); }
.flagship .lead { color: #c3bbe0; }
.flagship ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; color: #d6cff0; font-size: 15.5px; }
.flagship li { display: flex; gap: 10px; align-items: flex-start; }
.flagship li svg { width: 18px; height: 18px; color: #ff9fd0; margin-top: 4px; }
.flagship .actions .btn:not(.mana) { border-color: rgba(194, 160, 255, .3); }
.shots { position: relative; display: grid; place-items: center; min-height: 520px; }
.shots .desk { position: absolute; left: 0; top: 6%; width: 125%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); opacity: .9; }
.shots .phone {
  position: relative; z-index: 2; width: min(240px, 60vw); padding: 8px; border-radius: 34px; margin: 90px 0 0 46%;
  background: linear-gradient(160deg, #3a3458, #15121f 40%, #0c0a14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 50px 100px -30px rgba(0, 0, 0, .95);
}
.shots .phone img { border-radius: 26px; }

/* Principles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(148, 178, 255, .05), rgba(148, 178, 255, .015));
  border: 1px solid var(--line);
}
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--cyan); }
.ic svg { width: 22px; height: 22px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
a.project {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, background .2s;
}
a.project:hover { color: var(--text); border-color: rgba(34, 211, 238, .4); transform: translateY(-3px); background: #0e1522; }
.project .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.project .top svg { width: 20px; height: 20px; color: var(--faint); transition: color .2s, transform .2s; }
a.project:hover .top svg { color: var(--cyan); transform: translate(2px, -2px); }
.project h3 { margin: 0 0 8px; font-size: 20px; }
.project p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 600 12px/1 var(--mono); color: var(--muted); padding: 6px 9px; border-radius: 8px; background: rgba(148, 178, 255, .07); border: 1px solid var(--line); }
.tag.hot { color: var(--accent); border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08); }
.tag.early { color: #fcd34d; border-color: rgba(252, 211, 77, .28); background: rgba(252, 211, 77, .07); }
.kind { font: 700 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about .sig { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin-top: 26px; }
.about .avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--edge); color: #fff; font: 700 30px/1 var(--display); text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.about .sig b { display: block; font: 600 20px/1.2 var(--display); }
.about .sig span { color: var(--muted); font-size: 15px; }
.about .prose p { color: #cbd5ee; }
.about ul { padding-left: 20px; color: #cbd5ee; }
.about li { margin: 6px 0; }
.about li::marker { color: var(--cyan); }

/* Contact */
.band {
  text-align: center; padding: clamp(48px, 8vw, 88px) 24px; border-radius: 32px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(34, 211, 238, .22), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.band .lead { margin-inline: auto; }
.band .actions { justify-content: center; }
.mail { font: 600 clamp(20px, 3vw, 30px)/1.3 var(--display); letter-spacing: -.02em; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .actions { justify-content: center; }

@media (max-width: 1000px) {
  .flagship { grid-template-columns: 1fr; }
  .shots { min-height: 460px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-4, .projects { grid-template-columns: 1fr; }
  .flagship ul { grid-template-columns: 1fr; }
  .flagship { border-radius: 24px; }
  .shots { min-height: 400px; }
  .shots .desk { width: 150%; }
  .shots .phone { margin: 70px 0 0 30%; width: 190px; border-radius: 28px; }
  .shots .phone img { border-radius: 21px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .band { border-radius: 24px; }
}
section.flush { padding-top: 0; }
.wrap.narrow { width: min(780px, 100% - 40px); }
h2.small { font-size: 26px; margin-top: 44px; }
.project.more {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: center;
  padding: 30px; border-radius: 22px; border: 1px dashed var(--line-strong);
  background: radial-gradient(80% 120% at 100% 0%, rgba(34, 211, 238, .1), transparent 70%);
}
.project.more p { color: var(--muted); max-width: 520px; margin: 0; }
.project.more .actions { margin-top: 20px; }
.project.more .lab { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; color: var(--muted); max-width: 640px; }
.project.more .lab b { color: var(--text); margin-right: 6px; }
.project.more .tag.early { align-self: flex-start; }
@media (max-width: 1000px) { .project.more { grid-column: span 2; } }
@media (max-width: 640px) { .project.more { grid-column: span 1; } }
@media (max-width: 640px) {
  .stats div { padding: 18px; }
  .stats b { font-size: 19px; }
  .stats span { font-size: 13.5px; line-height: 1.45; display: block; margin-top: 4px; }
}
