:root {
  /* Brand: green #34E15F, navy #00021F, white. Everything else is a tint of those. */
  --green: #34E15F;
  --navy: #00021F;
  --navy-2: #060a2e;
  --navy-3: #0c1240;
  --white: #ffffff;
  --text: #e9ebf5;
  --muted: #9aa0bd;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --display: "Google Sans", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Google Sans Code", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--navy); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--navy); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 2, 31, .72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links .nav-login { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  padding: 14px 22px; border-radius: 12px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-green { background: var(--green); color: var(--navy); box-shadow: 0 0 0 1px rgba(52,225,95,.4), 0 8px 30px -8px rgba(52,225,95,.55); }
.btn-green:hover { box-shadow: 0 0 0 1px rgba(52,225,95,.6), 0 12px 40px -6px rgba(52,225,95,.7); }
.btn-line { border: 1px solid var(--line-2); color: var(--white); background: rgba(255,255,255,.02); }
.btn-line:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }

/* Shared */
.glow {
  position: absolute; width: 900px; height: 900px; right: -200px; top: -200px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52,225,95,.18), rgba(52,225,95,0));
}
.glow-low { top: auto; bottom: -500px; left: 50%; right: auto; transform: translateX(-50%); }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--green); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; }
h2 { font-weight: 500; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 22px 0 0; }
.section-head { max-width: 760px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,225,95,.6); animation: ping 2.4s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,225,95,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52,225,95,0); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 168px 0 120px; min-height: 100svh; display: flex; align-items: center; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 13px; color: var(--text);
}
.hero h1 { font-weight: 700; font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.045em; }
.accent {
  background: linear-gradient(92deg, var(--green) 10%, #b8f5c8 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: clamp(18px, 1.9vw, 21px); max-width: 44ch; margin: 28px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: end; }
.flower { position: absolute; inset: 22%; width: 56%; filter: drop-shadow(0 20px 60px rgba(52,225,95,.25)); animation: float 7s ease-in-out infinite; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.o1 { inset: 12%; }
.o2 { inset: 2%; border-style: dashed; border-color: var(--line); animation: spin 60s linear infinite; }
.o3 { inset: -10%; border-color: var(--line); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--white);
  background: rgba(12,18,64,.85); border: 1px solid var(--line-2); backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.c1 { top: 6%; left: 4%; }
.c2 { top: 46%; right: -6%; animation-delay: -2s; }
.c3 { bottom: 4%; left: 14%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* About / bento */
.work { position: relative; overflow: hidden; padding: 140px 0; background: linear-gradient(var(--navy), var(--navy-2) 55%, var(--navy)); }
/* Skyline photo as a faint texture, rising from the bottom of the section */
.work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("images/skyline.jpg") center bottom / cover no-repeat;
  filter: grayscale(1) contrast(1.1);
  opacity: .08;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 75%, transparent 100%);
}
.work > .wrap { position: relative; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 64px; }
.card-dev { grid-row: span 2; }
.card {
  position: relative; overflow: hidden; padding: 32px; border-radius: 20px;
  background: linear-gradient(180deg, #090b28, #070b2f); /* solid, so the skyline stays behind the cards */
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before, .contact-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(52,225,95,.10), transparent 60%);
}
.card:hover, .contact-card:hover { border-color: var(--line-2); }
.card:hover::before, .contact-card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(52,225,95,.1); border: 1px solid rgba(52,225,95,.25); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; max-width: 46ch; }

.code {
  margin: 32px 0 0; padding: 22px 24px; border-radius: 14px; overflow-x: auto;
  background: rgba(0,2,31,.7); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--text);
}
.code .k { color: #9fb4ff; }
.code .f { color: var(--green); }
.code .s { color: #f3c98b; }

.nodes { width: 100%; max-width: 280px; margin-top: 26px; }
.nodes path, .nodes rect, .nodes circle { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.nodes rect { fill: rgba(255,255,255,.03); }
.nodes circle { fill: var(--navy-3); }
.nodes .spark { fill: var(--green); stroke: none; }

.bars { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin-top: 26px; }
.bars i { flex: 1; border-radius: 3px; background: var(--green); opacity: .85; height: 100%; }
.bars i:nth-child(3n) { opacity: .55; }
.bars i:nth-child(5n+2) { opacity: .7; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 14px !important; font-family: var(--mono); font-size: 13px; color: var(--text) !important; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 140px 0 150px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.contact-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 32px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025); transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card .label { margin: 0; }
.contact-card .value { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; color: var(--white); white-space: nowrap; }
.contact-card .go { position: absolute; right: 30px; top: 28px; color: var(--muted); font-size: 22px; transition: transform .3s var(--ease), color .3s; }
.contact-card:hover .go { transform: translateX(4px); color: var(--green); }
.cover { position: absolute; inset: 0; }
.copy {
  position: absolute; right: 24px; top: 24px; z-index: 1;
  font-family: var(--mono); font-size: 12px; color: var(--text); cursor: pointer;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--navy-3);
  transition: border-color .2s, color .2s;
}
.copy:hover { border-color: var(--green); color: var(--green); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.footer img { height: 22px; width: auto; opacity: .85; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .contact-grid .reveal:nth-child(2) { transition-delay: .1s; }
.bento .reveal:nth-child(3) { transition-delay: .2s; }

/* Tablet */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 340px; margin-top: 24px; }
  .bento { grid-template-columns: 1fr; }
  .card-dev { grid-row: auto; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn):not(.nav-login) { display: none; }
  .brand img { height: 24px; }
  .hero { padding: 120px 0 80px; min-height: 0; }
  .hero-art { max-width: 260px; }
  .c2 { right: -2%; }
  .work, .contact { padding: 96px 0; }
  .work::before { top: auto; height: 460px; }
  .card, .contact-card { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card .value { font-size: 22px; }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Log in page (placeholder: the form doesn't send anything) */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth-side { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(var(--navy), var(--navy-2)); }
.auth-side-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; padding: 48px; }
.auth-side .hero-art { max-width: 340px; justify-self: auto; }
.auth-quote { font-family: var(--display); font-size: 22px; color: var(--text); text-align: center; max-width: 22ch; margin: 0; }
.auth-main { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-brand img { height: 28px; width: auto; }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding: 48px 0; }
.auth-card h1 { font-weight: 500; font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.auth-sub { color: var(--muted); margin: 10px 0 32px; }
.auth-legal { color: var(--muted); font-size: 13px; margin: 0; }
.auth-foot { color: var(--muted); font-size: 15px; margin: 28px 0 0; text-align: center; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--white);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #5d6283; }
.field input:hover { border-color: rgba(255,255,255,.28); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(52,225,95,.15); background: rgba(255,255,255,.06); }
.field input.invalid { border-color: #ff6b6b; }
.field-error { color: #ff8a8a; font-size: 13px; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.reveal-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer;
  background: none; border: 0; padding: 8px 10px; border-radius: 8px;
}
.reveal-pw:hover { color: var(--white); background: rgba(255,255,255,.06); }
.text-link { color: var(--green); font-size: 14px; }
.text-link:hover { text-decoration: underline; }

.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); margin: 4px 0 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

.form-alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.form-alert.error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); color: #ffb3b3; }
.form-alert.info { background: rgba(52,225,95,.08); border: 1px solid rgba(52,225,95,.3); color: #b8f5c8; }

.btn-block { width: 100%; justify-content: center; position: relative; border: 0; cursor: pointer; }
.btn-block:disabled { cursor: progress; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,2,31,.25); border-top-color: var(--navy); animation: spin .7s linear infinite; }
.btn-block.loading .btn-label { opacity: .6; }
.btn-block.loading .spinner { display: inline-block; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 24px 16px; min-height: 100svh; }
}
