/* ============================================================
   Nestlava — studio website
   ============================================================ */

:root {
  --orange:      #f26419;
  --orange-2:    #ff7a33;
  --orange-soft: #fff1e9;
  --ink:         #0f1729;
  --ink-soft:    #1c2740;
  --slate:       #5a6478;
  --slate-light: #8a92a4;
  --line:        #e9ebf0;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fb;
  --radius:      18px;
  --radius-lg:   26px;
  --shadow-sm:   0 2px 10px rgba(15, 23, 41, .05);
  --shadow:      0 18px 50px rgba(15, 23, 41, .08);
  --maxw:        1140px;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* Accessibility: skip link + focus visibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(242, 100, 25, .28); }
.btn-primary:hover { background: var(--orange-2); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(15, 23, 41, .22); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { height: 46px; width: auto; object-fit: contain; }
.brand-name { font-weight: 800; letter-spacing: .22em; font-size: 17px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--slate); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 11px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: .25s; }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: 0; margin-top: 10px; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 18%, rgba(242, 100, 25, .10), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(15, 23, 41, .04), transparent 60%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange);
  background: var(--orange-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); }
.hero h1 .accent { color: var(--orange); }
.lead { margin: 24px 0 32px; font-size: 18px; color: var(--slate); max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; perspective: 1300px; }
.hero-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%; top: 30%;
  background: radial-gradient(circle, rgba(242,100,25,.22), transparent 65%); filter: blur(10px);
}
.hero-logo { width: 158px; height: auto; max-width: 48%; position: relative; z-index: 5; transform: translateY(-46px); filter: drop-shadow(0 26px 38px rgba(15,23,41,.20)); animation: float 6s ease-in-out infinite; }

/* Stacked 3D sheets fanning down behind the mark */
.hero-stack { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(52deg); transform-style: preserve-3d; }
.hero-card {
  position: absolute; left: 50%; top: 50%; background: #fff;
  border-radius: 44px; border: 1px solid rgba(15,23,41,.04);
}
.hero-card-1 { width: 280px; height: 280px; margin: -140px 0 0 -140px; transform: translateZ(48px); box-shadow: 0 34px 50px rgba(15,23,41,.14); z-index: 3; }
.hero-card-2 { width: 280px; height: 280px; margin: -140px 0 0 -140px; transform: translateZ(24px); box-shadow: 0 30px 44px rgba(15,23,41,.10); z-index: 2; opacity: .72; }
.hero-card-3 { width: 280px; height: 280px; margin: -140px 0 0 -140px; transform: translateZ(0px); box-shadow: 0 26px 40px rgba(15,23,41,.08); z-index: 1; opacity: .45; }

@keyframes float { 0%,100% { transform: translateY(-46px); } 50% { transform: translateY(-53px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.section h2 { font-size: clamp(28px, 4vw, 40px); }
.section-sub { margin-top: 16px; font-size: 17px; color: var(--slate); }

/* ---------- Apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dfe2ea; }
.app-icon {
  width: 84px; height: 84px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; box-shadow: 0 12px 26px rgba(15,23,41,.14);
}
.app-icon img { width: 60px; height: 60px; object-fit: contain; }
.app-icon svg { width: 36px; height: 36px; fill: #fff; }
.helvetalk-bg { background: #fff; border: 1px solid var(--line); }
.resetra-bg   { background: #0f1117; }
.resetra-bg img { width: 54px; height: 54px; }
.soon-bg      { background: linear-gradient(140deg, #aeb6c6, #7c8499); }
.app-card h3 { font-size: 22px; }
.app-tag { font-size: 13px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 14px; }
.app-desc { color: var(--slate); font-size: 15px; margin-bottom: 24px; flex: 1; }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  background: var(--ink); color: #fff; border-radius: 12px; transition: background .18s, transform .18s;
}
.store-badge:hover { background: var(--ink-soft); transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: 14px; font-weight: 700; text-align: left; }
.store-badge small { font-size: 9.5px; font-weight: 500; opacity: .8; letter-spacing: .03em; }
.coming-soon {
  display: inline-block; padding: 11px 26px; border: 1.5px dashed var(--slate-light);
  color: var(--slate); border-radius: 999px; font-weight: 700; font-size: 14px;
}
.app-card-soon { background: var(--bg-soft); }

/* ---------- HelveTalk Showcase ---------- */
.showcase { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-alt { background: #fff; }
.showcase .section-sub em { font-style: italic; color: var(--ink); }
.shots {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--slate-light) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb { background: #d3d8e2; border-radius: 999px; }
.shots::-webkit-scrollbar-thumb:hover { background: var(--slate-light); }
.shot {
  flex: 0 0 auto; width: 232px; scroll-snap-align: center; margin: 0;
}
.shot img {
  width: 100%; height: auto; border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 41, .16);
  border: 1px solid rgba(15, 23, 41, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover img { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(15, 23, 41, .22); }
.shots-hint { text-align: center; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--slate-light); }

/* ---------- About ---------- */
.about-panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px;
}
.about-left h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about-right p { color: var(--slate); font-size: 17px; margin-bottom: 18px; }
.about-stats { list-style: none; display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-size: 26px; color: var(--ink); }
.about-stats span { font-size: 13.5px; color: var(--slate); }

/* ---------- Developer ---------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dev-copy p { color: var(--slate); font-size: 17px; margin-bottom: 18px; }
.dev-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.dev-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--orange), var(--orange-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: .02em;
}
.dev-person strong { display: block; font-size: 16px; }
.dev-person span { font-size: 14px; color: var(--slate); }

.dev-visual { display: flex; flex-direction: column; gap: 22px; }
.dev-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); filter: drop-shadow(0 30px 50px rgba(15,23,41,.16)); }
.code-window { background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.code-bar { display: flex; gap: 8px; padding: 16px 18px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a4256; }
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-window pre { padding: 24px; overflow-x: auto; }
.code-window code { font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.9; color: #d6dbe6; }
.c-key  { color: #ff7a33; }
.c-var  { color: #6cb6ff; }
.c-prop { color: #ffd479; }
.c-str  { color: #7ee787; }

/* ---------- Contact ---------- */
.contact-panel {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: var(--radius-lg); padding: 48px 52px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.contact-panel::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(242,100,25,.35), transparent 65%);
}
.contact-icon {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: rgba(242,100,25,.16); display: flex; align-items: center; justify-content: center; z-index: 1;
}
.contact-icon svg { width: 30px; height: 30px; fill: var(--orange-2); }
.contact-text { flex: 1; min-width: 260px; z-index: 1; }
.contact-text h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.contact-text p { color: #aab2c4; margin-top: 8px; font-size: 16px; }
.contact-mail { z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer-brand p { color: var(--slate); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.footer-brand .copyright { margin-top: 18px; font-size: 13px; color: var(--slate-light); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; order: -1; }
  .hero-logo { width: 150px; }
  .brand-mark { height: 38px; }
  .apps-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .about-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .dev-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-panel { padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 50px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .about-stats { gap: 24px; }
  .shots { gap: 16px; }
  .shot { width: 78vw; max-width: 300px; }
}

/* Toggle animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
  html { scroll-behavior: auto; }
}
