:root {
  color-scheme: dark;
  --background: hsl(220 20% 5%);
  --foreground: hsl(0 0% 98%);
  --surface: hsl(220 20% 8%);
  --muted: hsl(0 0% 65%);
  --line: hsl(220 20% 16%);
  --primary: hsl(220 100% 56%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 89px;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; }
h1, h2, h3, .dev-brand strong { font-family: 'Schibsted Grotesk', system-ui, sans-serif; }
.wrap { max-width: 1280px; margin: auto; padding: 0 36px; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 100; background: var(--primary); color: white; padding: 12px 18px; border-radius: 8px; }
.skip:focus { top: 15px; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: hsl(220 20% 5% / .96);
  border-bottom: 1px solid #ffffff1a;
  box-shadow: inset 0 1px #ffffff0f;
}
.site-nav::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, #1f6aff66, transparent); pointer-events: none; }
.nav-inner { max-width: 1280px; margin: auto; padding: 17px 36px; min-height: 89px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.dev-brand { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; justify-self: start; }
.dev-brand strong { font-size: 19px; letter-spacing: .025em; font-weight: 700; color: var(--foreground); }
.brand-accent { color: #4b8aff; }
.brand-byline { font-size: 11px; letter-spacing: .04em; color: var(--muted); line-height: 1.4; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a, .nav-contact, .nav-toggle, #mobile-nav a { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; text-decoration: none; color: var(--muted); }
.nav-links a { position: relative; padding: 8px 0; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 2px; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover { color: white; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-contact { justify-self: end; padding: 12px 20px; border: 1px solid #1f6aff66; border-radius: 999px; color: #78a4ff; transition: background .2s, color .2s; }
.nav-contact:hover { background: var(--primary); color: white; }
.nav-toggle { display: none; background: #1f6aff1a; border: 1px solid #1f6aff66; border-radius: 999px; padding: 11px 15px; color: #78a4ff; cursor: pointer; }
.nav-toggle span { font-size: 16px; margin-left: 8px; }
#mobile-nav[hidden] { display: none; }
#mobile-nav { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 24px; padding: 20px 0 15px; }
#mobile-nav a { color: var(--foreground); }
#apps, #about, #contact, #main { scroll-margin-top: 110px; }

.hero { padding: 86px 0 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #78a4ff; }
.dot { width: 32px; height: 1px; background: var(--primary); flex-shrink: 0; }
h1 { font-size: clamp(48px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; margin: 24px 0 0; }
h1 em { font-style: normal; color: var(--primary); }
.intro { font-size: 18px; line-height: 1.75; max-width: 580px; margin: 0; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: white; padding: 16px 24px; font-size: 14px; font-weight: 500; margin-top: 24px; box-shadow: 0 6px 24px -6px #1f6aff66; transition: background .2s, box-shadow .2s; }
.button:hover { background: #165ce6; box-shadow: 0 10px 32px -8px #1f6aff80; }
.hero-art { margin: 48px 0 80px; position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid #1f6aff40; box-shadow: 0 24px 60px -24px #000c; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-art figcaption { position: absolute; left: 24px; bottom: 20px; color: #d6dfef; font-size: 11px; background: #080d18d9; border: 1px solid #ffffff26; padding: 9px 13px; border-radius: 999px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.tiny, .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: #1f6aff66; box-shadow: 0 18px 40px -20px #1f6aff33; }
.visual { height: 285px; padding: 30px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.classly { background: linear-gradient(145deg, #172c50, #111b30); }
.coffee { background: linear-gradient(145deg, #1a3049, #111c2c); align-items: flex-start; padding: 26px 35px 0; }
.slate { background: radial-gradient(ellipse at top, #25467d, #101b30); }
.schedule { width: 210px; background: #f8faff; color: #15243b; border-radius: 14px; padding: 23px; transform: rotate(-8deg); box-shadow: 0 20px 40px #0006; }
.schedule b { display: block; font-size: 12px; margin-bottom: 14px; }
.schedule i { display: block; height: 29px; border-radius: 5px; margin: 7px 0; background: #bcd6fb; }
.schedule i:nth-child(3) { width: 75%; background: #d6e7fb; }
.schedule i:nth-child(4) { width: 88%; background: #c8d8f4; }
.app-screen { width: 200px; max-width: 100%; height: auto; border: 6px solid #0a111d; border-radius: 30px; box-shadow: 0 24px 35px #0008; transform: rotate(7deg); display: block; }
.clapper { width: 215px; height: 130px; background: #eff5ff; color: #15243b; border-radius: 8px; transform: rotate(-7deg); padding: 51px 16px 12px; position: relative; box-shadow: 0 20px 40px #0008; }
.clapper::before { content: ''; position: absolute; inset: 0 0 auto; height: 32px; background: repeating-linear-gradient(130deg, #eff5ff 0 22px, #345d9e 22px 44px); border-radius: 8px 8px 0 0; border-bottom: 4px solid #172c50; }
.clapper b { font-size: 19px; display: block; }
.clapper span { display: block; font-size: 10px; letter-spacing: .1em; margin-top: 9px; }
.body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
h3 { font-size: 25px; letter-spacing: -.03em; font-weight: 600; margin: 12px 0; }
.body p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0 0 22px; }
.link { font-size: 14px; font-weight: 500; color: #78a4ff; text-underline-offset: 5px; margin-top: auto; align-self: flex-start; }
.link:hover { color: white; }
.note { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; padding: 70px 0; margin-top: 80px; border-top: 1px solid #1f6aff33; }
.about .tiny { color: #78a4ff; }
.about h2 { max-width: 300px; }
.about p { font-size: 20px; line-height: 1.75; color: var(--muted); margin: 0; }
.contact { border-radius: 24px; background: radial-gradient(ellipse at top right, #1f6aff1a, transparent 65%), var(--surface); border: 1px solid #1f6aff40; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 80px; }
.contact h2 { font-size: 32px; }
.contact p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.contact .button { flex-shrink: 0; margin: 0; }
footer { border-top: 1px solid #1f6aff33; padding: 28px 0 36px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer a { text-underline-offset: 4px; }
footer a:hover { color: #78a4ff; }

@media (max-width: 1000px) and (min-width: 801px) {
  .nav-links { gap: 20px; }
  .nav-inner { gap: 16px; padding-inline: 28px; }
  .dev-brand strong { font-size: 16px; }
  .hero { gap: 30px; }
  .body { padding: 24px; }
  .visual { padding-inline: 20px; }
}

@media (max-width: 800px) {
  body { padding-top: 80px; }
  .wrap { padding: 0 22px; }
  .nav-inner { min-height: 80px; padding: 15px 22px; grid-template-columns: 1fr auto; gap: 15px; }
  .nav-links, .nav-contact { display: none; }
  .nav-toggle { display: block; }
  .dev-brand strong { font-size: 16px; }
  .brand-byline { font-size: 10px; }
  .hero { display: block; padding: 48px 0 0; }
  .hero h1 { font-size: clamp(36px, 8.6vw, 68px); margin-bottom: 26px; }
  .hero .intro { max-width: 520px; font-size: 17px; }
  .eyebrow { font-size: 10px; letter-spacing: .18em; }
  .hero-art { margin: 32px 0 50px; border-radius: 20px; }
  .hero-art figcaption { left: 12px; bottom: 12px; font-size: 9px; padding: 6px 9px; }
  .grid { grid-template-columns: 1fr; }
  .visual { height: 280px; }
  .section-head .tiny { display: none; }
  h2 { font-size: 29px; }
  .about { grid-template-columns: 1fr; gap: 24px; padding: 45px 0; margin-top: 50px; }
  .about p { font-size: 18px; }
  .contact { align-items: flex-start; flex-direction: column; padding: 30px; margin-bottom: 50px; }
  .contact h2 { font-size: 29px; }
  footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button, .nav-links a::after { transition: none; }
  .card:hover { transform: none; }
}
