:root {
  --bg: #0a1118;
  --canvas: #f6f7f4;
  --paper: #ffffff;
  --ink: #0d1620;
  --muted: #5a6670;
  --line: rgba(13, 22, 32, 0.1);

  --postrivo: #2a86d8;
  --postrivo-deep: #0f1d2b;
  --fridge: #11b85b;
  --fridge-deep: #07301d;
  --sun: #f6c94a;
  --coral: #ef6a4a;
  --teal: #0f8f82;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 22, 32, 0.06), 0 8px 24px rgba(13, 22, 32, 0.06);
  --shadow-lg: 0 30px 80px rgba(13, 22, 32, 0.18);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 28px;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 17, 24, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1140px;
  min-height: 68px;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 11px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--sun), #ffd97a);
  box-shadow: 0 6px 18px rgba(246, 201, 74, 0.35);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 16px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: #fff;
  padding: clamp(64px, 11vw, 124px) 0 clamp(56px, 8vw, 96px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-bg::after {
  /* subtle dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.orb-blue {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, #2a86d8, transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}

.orb-green {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -60px;
  background: radial-gradient(circle at 60% 40%, #11b85b, transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}

.orb-sun {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, #f6c94a, transparent 70%);
  opacity: 0.32;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  50% { transform: translate(60px, 50px) scale(1.08); }
}
@keyframes drift2 {
  50% { transform: translate(-50px, 70px) scale(1.05); }
}
@keyframes drift3 {
  50% { transform: translate(40px, -40px) scale(1.1); }
}

.hero-shell {
  position: relative;
}

.hero-copy-block {
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(246, 201, 74, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.02;
  margin: 0;
  max-width: 14ch;
}

.grad {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.grad-blue {
  background-image: linear-gradient(120deg, #5aa9ee, #2a86d8);
}

.grad-green {
  background-image: linear-gradient(120deg, #4fe08a, #11b85b);
}

.hero-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.62;
  margin: 26px 0 0;
  max-width: 56ch;
}

.product-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 44px;
  max-width: 800px;
}

.product-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease),
    background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.product-chip:hover,
.product-chip:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  outline: 0;
}

.chip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 60px;
  width: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--postrivo-deep);
}

.chip-logo img {
  border-radius: 10px;
}

.chip-logo-postrivo {
  width: 88px;
}

.chip-logo-postrivo img {
  width: 76px;
  height: auto;
}

.chip-text {
  display: grid;
  gap: 3px;
  margin-right: auto;
  min-width: 0;
}

.chip-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.chip-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.chip-arrow {
  flex: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: transform 240ms var(--ease), color 240ms var(--ease);
}

.product-chip:hover .chip-arrow,
.product-chip:focus-visible .chip-arrow {
  transform: translateX(4px);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 116px) 0;
}

.section-heading {
  margin-bottom: clamp(32px, 5vw, 52px);
  max-width: 760px;
}

.section .eyebrow {
  color: var(--fridge-deep);
  margin-bottom: 16px;
}

.section .eyebrow .dot {
  background: var(--fridge);
  box-shadow: 0 0 0 4px rgba(17, 184, 91, 0.16);
}

.section-heading h2,
.domain-note h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0;
  max-width: 18ch;
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-radius: 28px;
  overflow: hidden;
  padding: 28px;
  min-height: 480px;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.product-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-panel-postrivo {
  background: linear-gradient(165deg, #16283a, #0c1722 70%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-panel-fridge {
  background: linear-gradient(165deg, #f0fff6, #e0f8ea);
  color: var(--ink);
  border: 1px solid rgba(7, 95, 53, 0.14);
}

.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  min-height: 230px;
  overflow: hidden;
}

.logo-stage-postrivo {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(42, 134, 216, 0.28), transparent 60%),
    #0b1622;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.logo-stage-postrivo .product-logo-wide {
  width: 78%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(42, 134, 216, 0.4));
}

.logo-stage-fridge {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(17, 184, 91, 0.32), transparent 60%),
    linear-gradient(165deg, #0fa94f, #0a7f3c);
  border: 1px solid rgba(7, 95, 53, 0.2);
  gap: 22px;
  padding: 26px 26px 0;
  align-items: flex-end;
  min-height: 256px;
}

.logo-stage-fridge .product-logo {
  width: 116px;
  height: 116px;
  border-radius: 22px;
  align-self: center;
  box-shadow: 0 16px 40px rgba(7, 48, 29, 0.4);
}

.phone-shot {
  width: 132px;
  height: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 0;
  box-shadow: 0 -8px 40px rgba(7, 48, 29, 0.35);
  object-fit: cover;
  object-position: top;
  max-height: 220px;
}

.product-content {
  margin-top: auto;
}

.product-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.product-panel-postrivo .product-label {
  color: #6fb3ee;
}

.product-panel-fridge .product-label {
  color: var(--fridge-deep);
}

.product-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.12;
  margin: 0;
}

.product-panel p:not(.product-label) {
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 42ch;
}

.product-panel-postrivo p:not(.product-label) {
  color: rgba(255, 255, 255, 0.72);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  margin-top: 22px;
  color: var(--postrivo);
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}

.product-link span {
  transition: transform 200ms var(--ease);
}

.product-link:hover span,
.product-link:focus-visible span {
  transform: translateX(4px);
}

.product-panel-postrivo .product-link {
  color: #8ec6ff;
}

.product-panel-fridge .product-link {
  color: var(--fridge-deep);
}

.product-link:hover,
.product-link:focus-visible {
  outline: 0;
}

/* ---------- Domain band ---------- */
.domain-note {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #fff4d2, #fef0d6 45%, #e8fbef);
  padding: clamp(64px, 9vw, 104px) 0;
}

.domain-note::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(17, 184, 91, 0.22), transparent 70%);
  pointer-events: none;
}

.note-shell {
  position: relative;
  max-width: 760px;
}

.domain-note .eyebrow {
  color: var(--postrivo);
  margin-bottom: 16px;
}

.domain-note .eyebrow .dot {
  background: var(--postrivo);
  box-shadow: 0 0 0 4px rgba(42, 134, 216, 0.16);
}

.domain-note p {
  color: #4a5550;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 60ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-footer {
  color: #fff;
}

.footer-meta {
  font-size: 0.92rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-panel {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .shell,
  .nav-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    display: none;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }

  .product-panel {
    padding: 20px;
  }

  .logo-stage {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
