/* ============================================
   PORTEGNO APPS - Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy: #0f1629;
  --navy-light: #1a2340;
  --navy-mid: #243054;
  --blue: #4A90B8;
  --blue-light: #6bb3d9;
  --blue-glow: rgba(74, 144, 184, 0.15);
  --gold: #D4A843;
  --gold-light: #e8c76a;
  --gold-glow: rgba(212, 168, 67, 0.12);
  --cream: #f9f7f2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --nav-height: 80px;
  --section-py: 120px;
  --container-max: 1200px;
  --container-px: 24px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --tr-fast: 0.2s var(--ease-out-quart);
  --tr-med: 0.4s var(--ease-out-expo);
  --tr-slow: 0.8s var(--ease-out-expo);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---- Grain Overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gray-900);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { font-size: 1.0625rem; line-height: 1.7; color: var(--gray-600); }
.text-sm { font-size: 0.9375rem; }
.text-lg { font-size: 1.1875rem; }

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.section {
  padding: var(--section-py) 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}
.btn--outline {
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 30px rgba(15, 22, 41, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--tr-med), box-shadow var(--tr-med);
}
.nav--solid {
  background: var(--navy);
}
.nav.scrolled {
  background: rgba(15, 22, 41, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  transition: color var(--tr-fast);
  position: relative;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 41, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-med);
}
.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--tr-fast);
}
.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--gold);
}

/* ============================================
   HERO - HOME
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 25% 40%, rgba(74,144,184,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 75% 55%, rgba(212,168,67,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(74,144,184,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 1%) scale(1.05); }
}
.hero__content {
  text-align: center;
  max-width: 820px;
  padding: 40px var(--container-px);
  position: relative;
  z-index: 1;
}
.hero__logo {
  height: 120px;
  width: auto;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.1s forwards;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}
.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.35s forwards;
}
.hero__title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1.1875rem;
  max-width: 580px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.65s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.9s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* ============================================
   APPS SHOWCASE - HOME
   ============================================ */
.apps-showcase {
  background: var(--cream);
  position: relative;
}
.apps-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300), transparent);
}
.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section__header h2 {
  margin-bottom: 16px;
}
.section__header p {
  color: var(--gray-500);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.app-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 48px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--tr-med), box-shadow var(--tr-med);
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.app-card--bedtime {
  background: linear-gradient(160deg, #0d0b2e 0%, #1a1560 50%, #0f1045 100%);
}
.app-card--brewy {
  background: linear-gradient(160deg, #1c2e3f 0%, #2c3e50 50%, #1a2a3a 100%);
}
.app-card__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.app-card__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.app-card__desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}
.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gold);
  transition: gap var(--tr-fast);
}
.app-card:hover .app-card__link {
  gap: 14px;
}
.app-card__link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--tr-fast);
}
.app-card:hover .app-card__link svg {
  transform: translateX(2px);
}

/* Stars decoration for Bedtime card */
.app-card--bedtime::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(240,196,32,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Pixel decoration for Brewy card */
.app-card--brewy::after {
  content: '';
  position: absolute;
  top: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  border: 3px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  pointer-events: none;
}

/* ============================================
   ABOUT BRIEF - HOME
   ============================================ */
.about-brief {
  background: var(--white);
}
.about-brief__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-brief__text h2 {
  margin-bottom: 20px;
}
.about-brief__text p {
  margin-bottom: 16px;
}
.about-brief__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================
   APP HERO (App detail pages)
   ============================================ */
.app-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 60px) 0 80px;
}
.app-hero--bedtime {
  background: linear-gradient(170deg, #020014 0%, #0d0b2e 30%, #1a1560 70%, #0f1045 100%);
}
.app-hero--brewy {
  background: linear-gradient(170deg, #0f1a24 0%, #1c2e3f 40%, #2c3e50 80%, #1a2a3a 100%);
}
.app-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
}
.app-hero--bedtime::before {
  background:
    radial-gradient(ellipse 400px 400px at 15% 30%, rgba(240,196,32,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 80% 70%, rgba(74,144,184,0.08) 0%, transparent 70%);
}
.app-hero--brewy::before {
  background:
    radial-gradient(ellipse 400px 400px at 20% 50%, rgba(111,78,55,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 80% 30%, rgba(74,144,184,0.06) 0%, transparent 70%);
}
.app-hero__inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.app-hero__info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.app-hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.app-hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 100px;
}
.app-hero--bedtime .app-hero__tag {
  background: rgba(240,196,32,0.12);
  color: #f0c420;
}
.app-hero--brewy .app-hero__tag {
  background: rgba(212,168,67,0.12);
  color: var(--gold);
}
.app-hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}
.app-hero__desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
}
.app-hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Store badge (coming soon) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.store-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.store-badge svg {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-badge__soon {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.store-badge__store {
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

/* App hero visual */
.app-hero__visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.app-hero__phone {
  width: 280px;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  background: var(--white);
}
.features--dark {
  background: var(--navy);
}
.features--cream {
  background: var(--cream);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: transform var(--tr-med), box-shadow var(--tr-med), border-color var(--tr-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: var(--gray-200);
}
.feature-card--dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.06);
}
.feature-card--dark:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.feature-card__icon--blue {
  background: var(--blue-glow);
  color: var(--blue);
}
.feature-card__icon--gold {
  background: var(--gold-glow);
  color: var(--gold);
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}
.feature-card--dark h3 { color: var(--white); }
.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}
.feature-card--dark p { color: rgba(255,255,255,0.5); }

/* ============================================
   SCREENSHOT GALLERY
   ============================================ */
.gallery {
  background: var(--cream);
  overflow: hidden;
}
.gallery__track-wrapper {
  position: relative;
  margin-top: 48px;
}
.gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px calc((100vw - var(--container-max)) / 2 + var(--container-px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.gallery__item img {
  height: 520px;
  width: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transition: transform var(--tr-med), box-shadow var(--tr-med);
}
.gallery__item img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Gallery navigation dots */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast);
}
.gallery__dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse 500px 300px at 50% 50%, rgba(74,144,184,0.1), transparent);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.5); margin-bottom: 36px; position: relative; }
.cta-section .btn { position: relative; }

/* ============================================
   SUPPORT FORM
   ============================================ */
.support-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
}
.support-hero h1 { color: var(--white); margin-bottom: 16px; }
.support-hero p { color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto; }

.support-form-section {
  background: var(--cream);
  padding: 80px 0 120px;
}
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-100);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-submit {
  margin-top: 8px;
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show {
  display: block;
}
.form-success__icon {
  width: 64px;
  height: 64px;
  background: var(--blue-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success__icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}
.form-success h3 {
  margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo img {
  height: 36px;
  opacity: 0.7;
}
.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--tr-fast);
}
.footer__links a:hover {
  color: rgba(255,255,255,0.8);
}
.footer__copy {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   BREWY PIXEL DECORATIONS
   ============================================ */
.pixel-grid {
  display: inline-grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}
.pixel-grid span {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: rgba(255,255,255,0.06);
}
.pixel-grid span.on {
  background: rgba(212,168,67,0.3);
}

/* ============================================
   LEGAL / POLICY PAGES
   ============================================ */
.legal-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 80px) 0 60px;
}
.legal-hero .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.legal-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}
.legal-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.legal-hero .legal-hero__updated {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  margin-top: 4px;
}

.legal-content {
  background: var(--cream);
  padding: 64px 0 100px;
}
.legal-content__inner {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  padding: 56px 52px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-100);
}
.legal-content__inner h2 {
  font-size: 1.35rem;
  color: var(--blue);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.legal-content__inner h2:first-child {
  margin-top: 0;
}
.legal-content__inner h3 {
  font-size: 1.05rem;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content__inner p {
  margin-bottom: 14px;
}
.legal-content__inner ul {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}
.legal-content__inner li {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
}
.legal-content__inner a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content__inner a:hover {
  color: var(--blue-light);
}
.legal-highlight {
  background: var(--blue-glow);
  border-left: 3px solid var(--blue);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}
.legal-highlight p {
  color: var(--gray-700);
  margin-bottom: 0;
}
.legal-content__inner .legal-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .legal-content__inner {
    padding: 36px 24px;
  }
  .legal-hero .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }
  .apps-grid {
    gap: 24px;
  }
  .app-card {
    padding: 36px 28px;
    min-height: 360px;
  }
  .about-brief__inner {
    gap: 48px;
  }
  .app-hero__inner {
    gap: 48px;
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
    --nav-height: 68px;
  }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .apps-grid {
    grid-template-columns: 1fr;
  }
  .about-brief__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .app-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .app-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .app-hero__badges {
    justify-content: center;
  }
  .app-hero__phone {
    width: 220px;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .gallery__item img {
    height: 400px;
  }
  .gallery__track {
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }
  .form-wrapper {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .app-card {
    padding: 28px 22px;
    min-height: 300px;
  }
  .app-hero__icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
  .gallery__item img {
    height: 340px;
  }
  .about-brief__stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat {
    padding: 24px 16px;
  }
  .stat__number {
    font-size: 2rem;
  }
}
