/* ==========================================================================
   Veroza – static landing page
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Buttons & tags
   6. Header  7. Hero     8. Phone mockup       9. Footer   10. Responsive
   ========================================================================== */

/* 1. Fonts (Inter, self-hosted) ------------------------------------------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #f3efe4;
  --cream-deep: #ebe5d8;
  --ink: #0d0e12;
  --ink-soft: #3a3b42;
  --coral: #ee674a;
  --coral-dark: #dc5436;
  --tag-bg: #e3e7df;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
  --container: 1120px;
  --gutter: 24px;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* 4. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* 5. Buttons & tags -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--coral); color: #fff;
  font: 600 14px/1 var(--font); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(238, 103, 74, .6);
  transition: background-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(220, 84, 54, .7); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 22px; font-size: 13px; }

.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--tag-bg); color: var(--ink-soft);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}

/* 6. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 239, 228, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(13, 14, 18, .06);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list a {
  position: relative; padding: 6px 0;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--coral); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: 28px 40px;
  background:
    radial-gradient(70% 90% at 18% 28%, #f7f3ea 0%, rgba(247, 243, 234, 0) 70%),
    linear-gradient(100deg, #f3efe4 0%, #eee8dc 55%, #e2d9cb 100%);
}

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 48px; min-height: 560px;
}
.hero__content { max-width: 580px; }

.hero__tags { display: flex; align-items: center; gap: 14px; max-width: 460px; margin-bottom: 26px; }
.hero__tags-line {                 /* dashed rule joining the two tags (echoes the orbit rings) */
  flex: 1; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(238, 103, 74, .5) 0 6px, transparent 6px 12px);
}

.hero__title {
  font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero__title .line { display: block; }
.hero__title .line--light { font-weight: 500; }

.hero__text { max-width: 470px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 32px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { min-height: 50px; padding-inline: 28px; }

/* key facts under the buttons */
.hero__stats { display: flex; max-width: 520px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(13, 14, 18, .1); }
.hero__stats li { flex: 1; padding-inline: 20px; }
.hero__stats li:first-child { padding-left: 0; }
.hero__stats li + li { border-left: 1px solid rgba(13, 14, 18, .1); }
.hero__stats strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--coral-dark); }
.hero__stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }

.hero__art { display: none; }

/* 8. Phone mockup ---------------------------------------------------------- */
.hero__visual { display: flex; justify-content: center; }

.phone {
  --phone-w: 258px; --bezel: 7px; --page-w: 390px;
  --scale: calc((var(--phone-w) - var(--bezel) * 2) / var(--page-w));
  position: relative;
  width: var(--phone-w); height: 560px; padding: var(--bezel);
  border-radius: 44px;
  background: linear-gradient(145deg, #e6e6e9 0%, #a9a9af 45%, #d6d6da 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .7),
    inset 0 0 0 5px #111,
    0 22px 30px -16px rgba(70, 50, 30, .42),
    0 8px 14px -8px rgba(70, 50, 30, .22);
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #b3b3b8; }
.phone__btn--a { left: -3px; top: 104px; height: 28px; }
.phone__btn--b { left: -3px; top: 148px; height: 48px; }
.phone__btn--c { right: -3px; top: 176px; height: 70px; }

.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 37px; background: #faf7f0;
}

/* the mini page is laid out at a normal mobile width, then scaled down to fit */
.m-page {
  width: var(--page-w); padding: 0 22px;
  transform: scale(var(--scale)); transform-origin: top left;
  font-size: 15px; line-height: 1.45;
}
.m-header { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.m-header img { height: 54px; width: auto; }

.m-tags { display: flex; justify-content: space-between; margin-bottom: 18px; }
.m-tags .tag { font-size: 13px; padding: 5px 12px; }

.m-title { font-size: 25px; line-height: 1.18; letter-spacing: -.02em; font-weight: 500; margin-bottom: 14px; }
.m-title strong { font-weight: 700; }
.m-text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 20px; }

.m-pill {
  display: flex; align-items: center; justify-content: center;
  height: 46px; margin-bottom: 12px; border-radius: 999px;
  background: var(--coral); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
}
.m-pill--sm { display: inline-flex; width: auto; height: 40px; margin: 0; padding: 0 22px; font-size: 14px; font-weight: 600; }

.m-art { width: 100%; height: auto; margin: 22px 0 18px; border-radius: 12px; }

.m-features { display: grid; gap: 14px; text-align: center; color: var(--coral-dark); font-size: 14px; font-weight: 500; line-height: 1.3; }
.m-features li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(13, 14, 18, .08); }
.m-features li:last-child { border-bottom: 0; }
.m-features svg { width: 42px; height: 42px; }

/* 8b. Phone animation ------------------------------------------------------
   Layers (outside → in):  .hero__visual  entrance, glow, ground shadow
                           .phone-float   endless float
                           .phone         mouse tilt (js/main.js sets --rx / --ry)
                           .m-scroll      auto-scrolling screen, staggered reveal
   All of it is switched off by the prefers-reduced-motion rule in section 3. */
.hero__visual { position: relative; isolation: isolate; animation: visual-in 1s cubic-bezier(.2, .8, .2, 1) both; }

.hero__visual::before {            /* warm glow behind the phone */
  content: ""; position: absolute; z-index: -1; inset: -4% -38%;
  background: radial-gradient(closest-side, rgba(255, 166, 92, .5), rgba(255, 166, 92, 0));
  animation: glow-pulse 5s ease-in-out infinite;
}
.hero__visual::after {             /* ground shadow that breathes against the float */
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -26px; height: 24px;
  background: radial-gradient(closest-side, rgba(60, 40, 20, .32), rgba(60, 40, 20, 0));
  animation: shadow-breathe 6s ease-in-out infinite;
}

.phone-float { animation: phone-float 6s ease-in-out infinite; }

.phone {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s ease-out;
  will-change: transform;
}

.phone__screen::after {            /* glass shine sweeping across the screen */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: screen-shine 7s ease-in-out 3.4s infinite;
}

/* the page "scrolls" down to the features, pauses, and comes back */
.m-scroll { --m-scroll: 272px; padding-bottom: 28px; animation: m-scroll 16s cubic-bezier(.45, 0, .25, 1) 3.4s infinite; will-change: transform; }

/* elements rise in one after another */
.m-scroll > * { animation: m-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.5s + var(--n, 0) * .11s); }
.m-scroll > :nth-child(2) { --n: 1; }
.m-scroll > :nth-child(3) { --n: 2; }
.m-scroll > :nth-child(4) { --n: 3; }
.m-scroll > :nth-child(5) { --n: 4; }
.m-scroll > :nth-child(6) { --n: 5; }
.m-scroll > :nth-child(7) { --n: 6; }
.m-scroll > :nth-child(8) { --n: 7; }

.m-pill--sm { animation: pill-glow 2.6s ease-out 1.8s infinite; }
.m-pill--primary { position: relative; }
.m-pill--primary::after {          /* attention ring on the main call to action */
  content: ""; position: absolute; inset: 0; border: 2px solid var(--coral); border-radius: inherit;
  animation: pill-ping 2.6s ease-out 2s infinite;
}

.m-features svg { animation: icon-bob 3s ease-in-out infinite; }
.m-features li:nth-child(2) svg { animation-delay: -1.5s; }

/* 8c. Space-filler beside the phone ----------------------------------------
   Sits to the LEFT of the phone, inside the gap between copy and mockup.
   Shown from 1080px up and again in the stacked layout (720–920px). */
.hero__content { position: relative; z-index: 3; }

.orbit {
  position: absolute; z-index: 0; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
}
.orbit::after {                    /* the dot travelling around the ring */
  content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; translate: -50% -50%;
  border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(238, 103, 74, .16);
}
.orbit--1 { width: 430px; height: 430px; border: 1.5px dashed rgba(238, 103, 74, .32); animation: spin 38s linear infinite; }
.orbit--2 { width: 560px; height: 560px; border: 1.5px solid rgba(238, 103, 74, .14); animation: spin 64s linear infinite reverse; }
.orbit--2::after { width: 8px; height: 8px; background: #f6b25a; box-shadow: 0 0 0 5px rgba(246, 178, 90, .2); }

.phone-float { position: relative; z-index: 2; }

.float-card {
  position: absolute; z-index: 1; right: 100%; top: 168px; width: 232px; margin-right: -40px;
  border: 5px solid rgba(255, 255, 255, .9); border-radius: 24px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 50px -24px rgba(120, 50, 10, .55), 0 10px 20px -10px rgba(120, 50, 10, .3);
  rotate: -7deg;
  animation: chip-in .9s cubic-bezier(.2, .8, .2, 1) .9s both, card-float 7s ease-in-out 1.8s infinite;
}
.float-card img { width: 100%; height: auto; }

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -14px rgba(80, 50, 20, .4);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.float-chip__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; }
.float-chip__icon svg { width: 18px; height: 18px; }

.float-chip--a { right: 100%; top: 64px;  margin-right: -26px; animation: chip-in .8s cubic-bezier(.2, .8, .2, 1) 1.2s both, chip-float 5s ease-in-out 2s infinite; }
.float-chip--b { right: 100%; top: 372px; margin-right: 34px;  animation: chip-in .8s cubic-bezier(.2, .8, .2, 1) 1.45s both, chip-float 6s ease-in-out -1s infinite; }
.float-chip--c { right: 100%; top: 452px; margin-right: -18px; animation: chip-in .8s cubic-bezier(.2, .8, .2, 1) 1.7s both, chip-float 5.5s ease-in-out -2.5s infinite; }

@media (max-width: 1279px) {
  .float-card { width: 200px; top: 176px; margin-right: -34px; }
}
@media (max-width: 1079px) {
  .float-card, .float-chip { display: none; }           /* not enough room beside the phone */
}
@media (max-width: 920px) and (min-width: 720px) {     /* stacked layout: phone is centred, plenty of side room */
  .float-card { display: block; width: 190px; top: 150px; margin-right: -30px; }
  .float-chip--a, .float-chip--c { display: flex; }
}
@media (max-width: 719px) {
  .orbit, .float-card, .float-chip { display: none; }
}

@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes chip-in    { from { opacity: 0; transform: translateX(36px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@keyframes visual-in     { from { opacity: 0; transform: translateY(56px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes phone-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow-breathe{ 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .5; } }
@keyframes glow-pulse    { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes screen-shine  { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
@keyframes m-scroll      { 0%, 16% { transform: translateY(0); } 38%, 62% { transform: translateY(calc(var(--m-scroll) * -1)); } 84%, 100% { transform: translateY(0); } }
@keyframes m-in          { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pill-ping     { 0% { transform: scale(1); opacity: .75; } 70%, 100% { transform: scale(1.1, 1.38); opacity: 0; } }
@keyframes pill-glow     { 0% { box-shadow: 0 0 0 0 rgba(238, 103, 74, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(238, 103, 74, 0); } }
@keyframes icon-bob      { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.07); } }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid rgba(13, 14, 18, .07);
  padding-block: 56px 28px;
  color: var(--ink-soft);
}
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(13, 14, 18, .1);
}
.footer__brand .brand img { height: 72px; }
.footer__brand p { max-width: 320px; margin-top: 16px; font-size: 15px; line-height: 1.6; }

.footer__heading { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 24px; }
.footer__disclaimer { max-width: 720px; font-size: 13px; line-height: 1.6; color: #5b5c63; }
.footer__copy { flex-shrink: 0; font-size: 13px; color: #5b5c63; }

/* 10. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__title { font-size: 36px; }
  .hero__inner { gap: 32px; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; --gutter: 20px; }
  .brand img { height: 48px; }

  /* collapsible nav */
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--cream); border-bottom: 1px solid rgba(13, 14, 18, .08);
    box-shadow: 0 20px 30px -20px rgba(60, 40, 20, .3);
    display: none; padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(13, 14, 18, .07); }
  .nav__list a::after { display: none; }

  /* hero stacks, phone sits underneath */
  .hero { padding-block: 40px 56px; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .hero__content { max-width: 640px; margin-inline: auto; }
  .hero__visual { order: 2; justify-self: center; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .btn--sm { min-height: 38px; padding: 0 18px; }

  .hero { padding-block: 28px 44px; }
  .hero__inner { gap: 32px; }
  .hero__tags { margin-bottom: 20px; }
  .hero__stats { margin-top: 28px; padding-top: 20px; }
  .hero__stats li { padding-inline: 12px; }
  .hero__stats strong { font-size: 20px; }
  .hero__stats span { font-size: 12px; }
  .hero__title { font-size: 31px; margin-bottom: 16px; }
  .hero__title .line { display: inline; }
  .hero__text { font-size: 16px; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  /* phone-in-a-phone makes no sense here: show the product art instead */
  .hero__visual { display: none; }
  .hero__art { display: block; margin-top: 32px; }
  .hero__art img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 40px -22px rgba(120, 50, 10, .55); }

  .site-footer { padding-block: 44px 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__bottom { flex-direction: column; gap: 14px; }
}

@media (max-width: 380px) {
  .footer__top { grid-template-columns: 1fr; }
}
