@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
  body { margin: 0; }
  img { max-width: 100%; }
  /* Layout: one dark world, built from the security section. Near-black page, charcoal panels
     split by hairlines, white headings, grey body, green mono labels as the "terminal" detail. */
  :root {
    --bg: #272c36;
    --panel: #313742;
    --panel-2: #3a404c;
    --line: #4a5160;
    --ink: #f5f5f7;
    --muted: #b0b0b6;
    --dim: #9b9ca6;
    --code: #7ee2a8;
    --accent: #0a84ff;
    --link: #2997ff;
    --accent-ink: #ffffff;
    --light: #f5a524;
    --glow-a: #f5a524;
    --glow-b: #2f7bff;

    --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --wrap: 1080px;
    --gutter-l: max(16px, env(safe-area-inset-left, 0px));
    --gutter-r: max(16px, env(safe-area-inset-right, 0px));
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  html { scroll-behavior: smooth; background: var(--bg); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

  body {
    background:
      radial-gradient(1000px 640px at 50% 0%, rgba(47,123,255,.22), transparent 70%),
      radial-gradient(720px 520px at 12% 5%, rgba(245,165,36,.14), transparent 70%),
      radial-gradient(820px 620px at 92% 22%, rgba(47,123,255,.14), transparent 70%),
      radial-gradient(900px 640px at 8% 40%, rgba(126,226,168,.10), transparent 70%),
      radial-gradient(820px 620px at 90% 60%, rgba(245,165,36,.11), transparent 70%),
      radial-gradient(900px 640px at 15% 79%, rgba(47,123,255,.13), transparent 70%),
      var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
  h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
  p { margin: 0; }
  ::selection { background: rgba(126,226,168,.25); }

  .wrap {
    max-width: calc(var(--wrap) + 32px);
    margin: 0 auto;
    padding-left: var(--gutter-l);
    padding-right: var(--gutter-r);
  }
  .code { font-family: var(--mono); font-size: 12px; color: var(--code); letter-spacing: 0; }

  /* ---------- Nav ---------- */
  body::before {
    content: ""; position: fixed; inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px); z-index: 10;
    background: rgba(39,44,54,.85);
  }
  .nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: rgba(39,44,54,.74);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
  .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
  .brand-mark { width: 22px; height: 22px; display: block; flex: none; }
  footer .brand-mark { width: 16px; height: 16px; }
  .foot-brand { display: inline-flex; align-items: center; gap: 8px; }
  .nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--muted); }
  .nav-links a:hover { color: var(--ink); }
  .pill {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    border-radius: 980px; font-weight: 500; white-space: nowrap;
    transition: background .2s;
  }
  .pill:hover { background: #3395ff; }
  .pill.sm { font-size: 13px; padding: 6px 14px; }
  .pill.lg { font-size: 17px; padding: 12px 24px; }
  .link-more { color: var(--link); font-size: 17px; white-space: nowrap; }
  .link-more:hover { text-decoration: underline; }
  .link-more::after { content: " \203A"; }

  /* ---------- Hero ---------- */
  .hero { text-align: center; padding-block: 96px 56px; position: relative; overflow: hidden; }
  .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--code); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 700; letter-spacing: -0.035em; max-width: 16ch; margin-inline: auto; }
  .hero h1 span { display: block; color: var(--dim); }
  .hero .sub { font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); max-width: 34ch; margin: 22px auto 0; line-height: 1.35; }
  .hero-cta { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }

  .stage { position: relative; margin-top: 64px; padding-bottom: 8px; }
  .stage::before {
    content: ""; position: absolute; inset: 4% 8% 10%;
    background: radial-gradient(50% 55% at 28% 45%, var(--glow-a), transparent 70%),
                radial-gradient(50% 60% at 74% 55%, var(--glow-b), transparent 70%);
    filter: blur(70px); opacity: .48; z-index: 0;
  }
  .pane {
    position: relative; z-index: 1;
    max-width: 920px; margin: 0 auto;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px -40px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.04) inset;
    overflow: hidden;
    text-align: left;
  }
  .pane-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #2c313b; }
  .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.25); }
  .dot:nth-child(2) { background: #febc2e; }
  .dot:nth-child(3) { background: #28c840; }
  .url {
    flex: 1; min-width: 0; margin-left: 12px; max-width: 360px;
    font-family: var(--mono); font-size: 12px; color: var(--muted);
    background: var(--panel-2); border-radius: 7px; padding: 5px 10px;
    display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .lock { width: 9px; height: 11px; flex: none; position: relative; }
  .lock::before { content: ""; position: absolute; left: 1px; top: 0; width: 7px; height: 6px; border: 1.5px solid var(--code); border-bottom: none; border-radius: 4px 4px 0 0; }
  .lock::after { content: ""; position: absolute; left: 0; bottom: 0; width: 9px; height: 6px; background: var(--code); border-radius: 1.5px; }
  .pane-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; padding: 36px 40px 44px; align-items: center; }
  .secure { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--code); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .secure::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--code); box-shadow: 0 0 8px var(--code); }

  /* the example startup site inside the pane */
  .site-nav { display: flex; align-items: center; gap: 20px; padding: 14px 40px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .site-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
  .site-logo b { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--glow-a), var(--glow-b)); }
  .site-links { display: flex; gap: 18px; color: var(--dim); margin-left: 12px; }
  .site-btn { margin-left: auto; font-size: 12px; padding: 5px 12px; border-radius: 980px; border: 1px solid #5b6270; color: var(--ink); }
  .site-hero { display: grid; gap: 14px; justify-items: start; min-width: 0; }
  .site-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: var(--panel-2); border-radius: 980px; padding: 4px 10px 4px 4px; display: inline-flex; gap: 8px; align-items: center; }
  .site-chip b { font-weight: 600; font-size: 11px; color: #111; background: var(--light); border-radius: 980px; padding: 1px 8px; }
  .site-h { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
  .site-p { font-size: 15px; color: var(--muted); max-width: 36ch; }
  .site-ctas { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
  .site-ctas span { font-size: 13px; padding: 8px 16px; border-radius: 980px; font-weight: 500; }
  .site-ctas .b1 { background: var(--accent); color: #fff; }
  .site-ctas .b2 { border: 1px solid #5b6270; color: var(--ink); }

  .dash {
    border-radius: 14px; border: 1px solid var(--line); padding: 18px 18px 16px;
    background: radial-gradient(80% 70% at 20% 0%, rgba(245,165,36,.22), transparent 70%),
                radial-gradient(80% 70% at 100% 100%, rgba(47,123,255,.28), transparent 70%),
                var(--panel-2);
    display: grid; gap: 6px; min-width: 0;
  }
  .dash-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
  .dash-range { font-family: var(--mono); font-size: 11px; color: var(--dim); }
  .dash-num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .dash-num em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--code); margin-left: 6px; }
  .bars { height: 110px; display: flex; align-items: end; gap: 6px; margin-top: 10px; border-bottom: 1px solid #2c2f37; }
  .bars i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.18); }
  .bars i.hi { background: var(--light); }
  .bars i:nth-child(1) { height: 34%; }
  .bars i:nth-child(2) { height: 42%; }
  .bars i:nth-child(3) { height: 38%; }
  .bars i:nth-child(4) { height: 51%; }
  .bars i:nth-child(5) { height: 47%; }
  .bars i:nth-child(6) { height: 58%; }
  .bars i:nth-child(7) { height: 55%; }
  .bars i:nth-child(8) { height: 66%; }
  .bars i:nth-child(9) { height: 63%; }
  .bars i:nth-child(10) { height: 74%; }
  .bars i:nth-child(11) { height: 81%; }
  .bars i:nth-child(12) { height: 92%; }

  .pane-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line); background: #2c313b;
  }
  .pane-stats div { padding: 14px 18px 16px; display: grid; gap: 3px; }
  .pane-stats div + div { border-left: 1px solid var(--line); }
  .pane-stats .k { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .pane-stats b { color: var(--code); font-weight: 500; }
  .pane-stats .d { font-size: 12px; color: var(--dim); line-height: 1.35; }

  .stage-cap { margin-top: 18px; font-size: 13px; color: var(--dim); position: relative; z-index: 1; }

  /* callouts that point into the pane */
  .callout {
    position: absolute; z-index: 2;
    font-size: 12px; font-weight: 500; color: var(--ink);
    background: rgba(62,68,80,.95); border: 1px solid #626977;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px 6px 10px; border-radius: 980px;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  }
  .callout i { width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 0 3px rgba(245,165,36,.2); }
  .callout.c1 { left: 0; top: 110px; }
  .callout.c2 { right: 0; top: 196px; }
  .callout.c3 { left: 4%; bottom: 120px; }
  .callout.c3 i { background: var(--code); box-shadow: 0 0 0 3px rgba(126,226,168,.2); }

  /* ---------- Sections ---------- */
  section { padding-block: 96px; border-top: 1px solid var(--line); }
  .head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
  .head h2 { font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; }
  .head p { font-size: 19px; color: var(--muted); margin-top: 14px; }

  /* Services: same 2×2, built like the security grid */
  .tiles {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  }
  .tile {
    background: var(--panel);
    padding: 36px 32px; display: flex; flex-direction: column; gap: 10px;
    transition: background .25s ease;
  }
  .tile:hover { background: #373d49; }
  .tile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--panel-2); border: 1px solid var(--line);
    display: grid; place-items: center;
  }
  .icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tile .tag { font-family: var(--mono); font-size: 12px; color: var(--code); text-transform: lowercase; }
  .tile h3 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 650; letter-spacing: -0.02em; }
  .tile p { color: var(--muted); font-size: 16px; max-width: 42ch; }
  .tile .link-more { margin-top: auto; padding-top: 14px; font-size: 15px; }

  /* Security */
  .checks {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  }
  .check { background: var(--panel); padding: 32px 28px; display: grid; gap: 8px; align-content: start; }
  .check h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
  .check p { color: var(--muted); font-size: 15px; }

  /* Work */
  .work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
  .case {
    border-radius: 22px; overflow: hidden; background: var(--panel);
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
    transition: border-color .25s ease;
  }
  .case:hover { border-color: #5b6270; }
  .case-art { aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
  .case-art.soheil { background: linear-gradient(160deg, #0f1e2e, #1f3a52); color: #e9eef3; }
  .case-art.soheil span { font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
  .case-art.next { background: repeating-linear-gradient(135deg, var(--panel) 0 14px, #3a404b 14px 15px); color: var(--dim); font-family: var(--mono); font-size: 13px; }
  .case-info { padding: 26px 30px 30px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; flex: 1; }
  .case-info h3 { font-size: 24px; font-weight: 600; }
  .case-info p { color: var(--muted); font-size: 15px; margin-top: 4px; }
  .case-info .domain { font-family: var(--mono); font-size: 13px; color: var(--code); }

  /* Process */
  .steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  }
  .step { background: var(--panel); padding: 28px 24px; display: grid; gap: 8px; align-content: start; }
  .step .n { font-family: var(--mono); font-size: 12px; color: var(--code); }
  .step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
  .step p { color: var(--muted); font-size: 15px; }

  /* CTA */
  .cta { text-align: center; position: relative; overflow: hidden; }
  .cta::before {
    content: ""; position: absolute; left: 50%; top: 55%; width: min(720px, 90%); height: 260px;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(47,123,255,.36), transparent 70%);
    filter: blur(30px); pointer-events: none;
  }
  .cta .wrap { position: relative; }
  .cta .code { display: block; margin-bottom: 16px; }
  .cta h2 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; }
  .cta p { font-size: 19px; color: var(--muted); margin: 16px auto 32px; max-width: 40ch; }
  .mail-alt { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .copy {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font: inherit; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
    border-radius: 980px; padding: 6px 6px 6px 14px; transition: border-color .2s;
  }
  .copy:hover { border-color: #5b6270; color: var(--ink); }
  .copy .addr { font-family: var(--mono); font-size: 14px; user-select: all; }
  .copy-lbl { font-size: 12px; font-weight: 500; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 980px; padding: 3px 10px; }
  .mail-or { font-size: 13px; color: var(--dim); }
  .mail-or a { color: var(--link); }
  .mail-or a:hover { text-decoration: underline; }
  .toast {
    position: fixed; z-index: 30; left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 12px); opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    max-width: calc(100% - 32px);
    background: var(--panel-2); color: var(--ink); border: 1px solid #5b6270;
    border-radius: 14px; padding: 10px 16px; font-size: 14px; text-align: center;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  /* Footer */
  footer { padding-block: 0 40px; font-size: 12px; color: var(--dim); }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
  footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
  footer a:hover { color: var(--ink); }

  /* ---------- Responsive ---------- */
  @media (max-width: 1060px) { .callout { display: none; } }
  @media (max-width: 860px) {
    .checks { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .work { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .nav .pill { margin-left: auto; }
    .hero { padding-block: 64px 32px; }
    .pane-body { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
    .site-nav { padding: 12px 24px; }
    .site-links, .secure { display: none; }
    .pane-stats { grid-template-columns: 1fr 1fr; }
    .pane-stats div:nth-child(3) { border-left: none; }
    .pane-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .tiles { grid-template-columns: 1fr; }
    .tile { padding: 30px 24px; }
    section { padding-block: 72px; }
  }
  @media (max-width: 480px) {
    .checks, .steps { grid-template-columns: 1fr; }
  }

  /* ---------- Motion ---------- */
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  @keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes drift { from { transform: translate(-2%, 1%) scale(1); } to { transform: translate(3%, -2%) scale(1.08); } }
  @keyframes breathe { from { opacity: .6; } to { opacity: 1; } }

  .hero .eyebrow, .hero h1, .hero .sub, .hero-cta { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .sub { animation-delay: .2s; }
  .hero-cta { animation-delay: .3s; }
  .pane { animation: rise 1s .45s cubic-bezier(.2,.7,.2,1) both; }
  .stage-cap { animation: rise .8s .9s both; }
  .stage::before { animation: drift 14s ease-in-out infinite alternate; }

  .callout { animation: pop .55s cubic-bezier(.2,.9,.3,1.35) both, float 6s ease-in-out infinite; }
  .callout.c1 { animation-delay: 1.1s, 1.7s; }
  .callout.c2 { animation-delay: 1.3s, 2.6s; }
  .callout.c3 { animation-delay: 1.5s, 2.1s; }
  .callout i { position: relative; }
  .callout i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s ease-out infinite; }
  .callout.c2 i::after { animation-delay: .8s; }
  .callout.c3 i::after { animation-delay: 1.6s; }
  .secure::before { animation: blink 2.4s ease-in-out infinite; }

  .bars i { transform-origin: bottom; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.9s + var(--i, 0) * 55ms); }

  .cta::before { animation: breathe 6s ease-in-out infinite alternate; }

  /* scroll reveal: only applied by script, only to things below the first screen */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
