/* ============================================================
   ANIVSTA — Premium CPA Landing Page
   Dark cyberpunk / glassmorphism · Vanilla CSS
   Refactored: deduplicated selectors, single responsive system,
   repaired artwork frame (missing tokens + properties restored).
   ------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens
   02. Reset & base
   03. Ambient background (aurora, grain, cursor glow)
   04. Page shell
   05. Header
   06. Hero layout
   07. Badge
   08. Headline & lede
   09. Feature cards
   10. CTA
   11. Artwork (premium phone mockup)
   12. Load animations
   13. Footer
   14. Responsive (1280 / 992 / 768 / 640 / 380)
   15. Reduced motion
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
  /* Palette */
  --bg:            #080B15;
  --bg-raised:     #0D1120;
  --primary:       #7C3AED;
  --primary-soft:  #A78BFA;
  --secondary:     #EC4899;
  --secondary-soft:#F9A8D4;
  --accent:        #22C55E;
  --text:          #FFFFFF;
  --text-dim:      #B9C1D9;
  --text-faint:    #7B84A3;

  /* Gradients */
  --grad-brand:  linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-text:   linear-gradient(100deg, #9F67FF 0%, #D946EF 55%, #F472B6 100%);

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.04);
  --glass-bg-hi:  rgba(255, 255, 255, 0.07);
  --glass-line:   rgba(255, 255, 255, 0.09);
  --glass-line-hi:rgba(255, 255, 255, 0.16);

  /* Glow */
  --glow-primary:   0 0 40px rgba(124, 58, 237, 0.35);
  --glow-secondary: 0 0 40px rgba(236, 72, 153, 0.30);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --page-pad: clamp(20px, 4vw, 64px);
}

/* Animatable custom property for the conic border angle */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


/* ============================================================
   02. RESET & BASE
   ============================================================ */

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul[role="list"] {
  list-style: none;
}

::selection {
  background: rgba(124, 58, 237, 0.5);
  color: #fff;
}

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


/* ============================================================
   03. AMBIENT BACKGROUND
   ============================================================ */

/* --- Aurora: slow drifting blurred lights ------------------ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__light {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.aurora__light--1 {
  width: 55vw;
  height: 55vw;
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 65%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}

.aurora__light--2 {
  width: 46vw;
  height: 46vw;
  bottom: -25%;
  right: -10%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.42), transparent 65%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}

.aurora__light--3 {
  width: 34vw;
  height: 34vw;
  top: 30%;
  left: 42%;
  background: radial-gradient(circle, rgba(59, 40, 120, 0.6), transparent 65%);
  animation: aurora-drift-3 38s ease-in-out infinite alternate;
}

.aurora__light--4 {
  width: 22vw;
  height: 22vw;
  top: 8%;
  right: 18%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.14), transparent 65%);
  animation: aurora-drift-2 44s ease-in-out infinite alternate-reverse;
}

@keyframes aurora-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 7vh, 0) scale(1.15); }
}

@keyframes aurora-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vw, -6vh, 0) scale(0.95); }
}

@keyframes aurora-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(0.95) rotate(0deg); }
  to   { transform: translate3d(-6vw, 8vh, 0) scale(1.1) rotate(10deg); }
}

/* --- Film grain: kills banding, adds texture --------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Cursor glow: soft light following the mouse ----------- */

.cursor-glow {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
      rgba(124, 58, 237, 0.10) 0%,
      rgba(236, 72, 153, 0.05) 40%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}


/* ============================================================
   04. PAGE SHELL
   ============================================================ */

.page {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 32px) var(--page-pad);
  max-width: 1720px;
  margin: 0 auto;
}


/* ============================================================
   05. HEADER
   ============================================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

/* --- Brand ------------------------------------------------- */

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

.brand__mark{
    width:60px;
    height:60px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:none;
    border:none;
    box-shadow:none;
    border-radius:50%;
    overflow:hidden;
}

.brand__logo{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

.brand:hover .brand__mark{
    transform:scale(1.08);
    box-shadow:none;
}

.brand__name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand__accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Header meta (right side) ------------------------------ */

.header__meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.meta-item__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--primary-soft);
  border-radius: 11px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
}

.meta-item__icon svg {
  width: 18px;
  height: 18px;
}

.meta-item__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.meta-item__text strong {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-item__text small {
  font-size: 12px;
  color: var(--text-faint);
}


/* ============================================================
   06. HERO LAYOUT
   Desktop: two columns — content left, phone artwork right,
   vertically centered with balanced spacing.
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns:
minmax(560px,650px)
minmax(400px,480px);
  align-items: center;
  justify-content:center;
  gap:48px;
  width: 100%;
  min-height: calc(100vh - 120px);
  padding-block: 40px;
}

.hero__content {
  max-width: 620px;
  z-index: 2;
}

.hero__visual {
  position: relative;
  display: flex;
  
   justify-content:flex-end;
  align-items: center;
  min-width: 0;
}


/* ============================================================
   07. BADGE
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}


/* ============================================================
   08. HEADLINE & LEDE
   ============================================================ */

.headline {
  margin-top: clamp(18px, 2.6vh, 28px);
font-size:clamp(36px,4.7vw,72px);
    line-height:1.02;


  font-weight: 900;
  
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.headline__gradient {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(217, 70, 239, 0.28));
}

.lede {
  margin-top: clamp(16px, 2.4vh, 24px);
  max-width: 480px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
}

.lede em {
  font-style: normal;
  font-weight: 600;
}

.lede em:first-of-type { color: var(--primary-soft); }
.lede em:last-of-type  { color: var(--secondary-soft); }


/* ============================================================
   09. FEATURE CARDS
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(22px, 3.2vh, 36px);
}

.feature {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hi);
  border-color: var(--glass-line-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -18px rgba(0, 0, 0, 0.7),
    var(--glow-primary);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 13px;
  transition: transform 0.35s var(--ease-spring);
}

.feature:hover .feature__icon {
  transform: scale(1.12) rotate(-4deg);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature__icon--bolt {
  color: #C4B5FD;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.feature__icon--shield {
  color: #F9A8D4;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.32);
}

.feature__icon--cloud {
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feature__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature__text {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
}


/* ============================================================
   10. CTA
   ============================================================ */

.cta-block {
  margin-top: clamp(24px, 3.6vh, 40px);
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  padding: 22px 32px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  background-size: 150% 150%;
  background-position: 0% 50%;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 44px -12px rgba(124, 58, 237, 0.55),
    0 14px 44px -12px rgba(236, 72, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease,
    background-position 0.5s ease;
}

.cta:hover {
  transform: translateY(-3px) scale(1.015);
  background-position: 100% 50%;
  box-shadow:
    0 22px 60px -12px rgba(124, 58, 237, 0.7),
    0 22px 60px -12px rgba(236, 72, 153, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta:active {
  transform: translateY(-1px) scale(0.99);
}

/* Sliding light sweep across the button */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
      transparent 35%,
      rgba(255, 255, 255, 0.28) 50%,
      transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease-out);
}

.cta:hover::after {
  transform: translateX(110%);
}

.cta__icon,
.cta__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cta__icon svg {
  width: 22px;
  height: 22px;
}

.cta__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.35s var(--ease-spring), background 0.35s ease;
}

.cta__arrow svg {
  width: 18px;
  height: 18px;
}

.cta:hover .cta__arrow {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.28);
}

/* JS-injected ripple */
.cta .ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.65s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* --- Note under the CTA ------------------------------------ */

.cta-block__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.cta-block__lock {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.cta-block__note span {
  color: var(--secondary-soft);
  font-weight: 600;
}


/* ============================================================
   11. ARTWORK — PREMIUM PHONE MOCKUP (RIGHT SIDE)
   9:19 device · metallic frame · glass + backdrop blur ·
   animated conic border · glow · Dynamic Island · reflections
   ============================================================ */

.art {
  position: relative;
  /* Device geometry tokens — inherited by every .art__* child */
  --phone-radius: 52px;
  --phone-bezel: 10px;
  /* Width derived from viewport height so the full 9:19 device
     always fits inside 100vh with breathing room around it */
  width:min(380px,30vw,430px);
  animation: art-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes art-float {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(0.4deg); }
}

/* Soft glow bloom behind the whole device */
.art::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(124, 58, 237, 0.48) 0%,
      rgba(236, 72, 153, 0.22) 45%,
      transparent 72%);
  filter: blur(60px);
  animation: art-glow 5s ease-in-out infinite alternate;
}

@keyframes art-glow {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* --- Rotating conic gradient border ------------------------ */

.art__border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--phone-radius) + 2px);
  background: conic-gradient(from var(--border-angle, 0deg),
      var(--primary),
      var(--secondary),
      #38BDF8,
      var(--primary));
  animation: border-spin 7s linear infinite;
  filter: blur(0.5px);
  opacity: 0.85;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* --- Device frame: slim bezel, metallic edge, glass -------- */

.art__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  padding: var(--phone-bezel);
  border-radius: var(--phone-radius);
  overflow: hidden;
  /* Brushed-metal bezel under a subtle glass wash */
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 32%,
      rgba(0, 0, 0, 0.28) 68%,
      rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, #1B2036 0%, #0C1020 55%, #141931 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px -1px 0 rgba(0, 0, 0, 0.5),
    0 45px 100px -28px rgba(0, 0, 0, 0.9),
    0 0 90px rgba(124, 58, 237, 0.35);
}

/* Dynamic Island (speaker / camera pill) */
.art__frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--phone-bezel) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 20px;
  border-radius: 999px;
  background: #04060D;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Curved-glass edge reflections (left edge + top) */
.art__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: var(--phone-bezel);
  border-radius: calc(var(--phone-radius) - var(--phone-bezel));
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(255, 255, 255, 0.10) 0%,
      transparent 12%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 9%);
}

/* --- Screen artwork ---------------------------------------- */

.art__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: calc(var(--phone-radius) - var(--phone-bezel));
    transition: transform 0.9s var(--ease-out);
}

.art__frame:hover .art__img {
  transform: scale(1.05);
}

/* Fallback panel shown only while assets/hero.jpg is missing */
.art__fallback {
  display: none;
  position: absolute;
  inset: var(--phone-bezel);
  border-radius: calc(var(--phone-radius) - var(--phone-bezel));
  background:
    radial-gradient(circle at 30% 25%, rgba(124, 58, 237, 0.4), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(236, 72, 153, 0.3), transparent 55%),
    #10142A;
  place-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.art__fallback code {
  color: var(--secondary-soft);
  font-size: 14px;
}

.art__img--missing {
  visibility: hidden;
}

.art__img--missing + .art__fallback {
  display: grid;
}

/* Diagonal sheen sweeping over the artwork */
.art__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.09) 50%,
      transparent 60%);
  transform: translateX(-120%);
  animation: sheen 6.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55%   { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

/* --- Floating particles ------------------------------------ */

.art__particle {
  position: absolute;
  border-radius: 2px;
  background: var(--grad-brand);
  opacity: 0.8;
  animation: particle-float 5.5s ease-in-out infinite;
}

.art__particle--1 {
  width: 10px;
  height: 10px;
  top: 8%;
  left: -5%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.art__particle--2 {
  width: 7px;
  height: 7px;
  bottom: 16%;
  right: -6%;
  transform: rotate(45deg);
  animation-delay: 1.6s;
}

.art__particle--3 {
  width: 5px;
  height: 5px;
  top: 40%;
  right: -9%;
  transform: rotate(45deg);
  background: var(--accent);
  animation-delay: 3.1s;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0)     rotate(45deg);  opacity: 0.8; }
  50%      { transform: translateY(-22px) rotate(135deg); opacity: 0.35; }
}


/* ============================================================
   12. LOAD ANIMATIONS
   ============================================================ */

.anim {
  opacity: 0;
  animation-duration: 0.9s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: forwards;
  animation-delay: var(--d, 0s);
}

.anim--fade-up    { animation-name: fade-up; }
.anim--fade-down  { animation-name: fade-down; }
.anim--fade-left  { animation-name: fade-left; }
.anim--fade-right { animation-name: fade-right; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-left {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fade-right {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.footer {
  width: 100%;
  max-width: 1720px;
  margin: 60px auto 0;
  padding: 30px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
  color: #9ca3af;
  font-size: 14px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__link {
  color: #d1d5db;
  transition: 0.25s ease;
}

.footer__link:hover {
  color: #fff;
}


/* ============================================================
   14. RESPONSIVE — SINGLE SYSTEM
   Breakpoints: 1280 / 992 / 768 / 640 / 380 (descending,
   so narrower queries override wider ones)
   ============================================================ */

/* --- 1280px · Laptop --------------------------------------- */

@media (max-width: 1280px) {
  .headline {
    font-size: clamp(38px, 4.6vw, 64px);
  }

  .art {
    width:min(340px,28vw);
  }
}

/* --- 992px · Tablet: stack, artwork first, centered -------- */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding-block: 36px 48px;
  }

  .hero__visual {
    order: -1;   
    justify-content:center;
    width:100%;          /* artwork first on stacked layout */
  }

  .hero__content {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .badge,
  .lede,
  .cta {
    margin-inline: auto;
  }

  .cta-block__note {
    justify-content: center;
  }

  .art {
    width: min(300px, 62vw);
  }

  .meta-item__text small {
    display: none;
  }

  .cursor-glow {
    display: none;         /* no cursor on touch devices */
  }
}

/* --- 768px · Large phones ---------------------------------- */

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- 640px · Mobile ---------------------------------------- */

@media (max-width: 640px) {
  :root {
    --page-pad: 18px;
  }

  .header__meta {
    display: none;
  }

  .headline {
    font-size: clamp(34px, 10vw, 44px);
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 15px 16px;
  }

  .feature__icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .feature__text {
    margin-top: 2px;
  }

  .cta {
    padding: 19px 22px;
    gap: 12px;
  }

  .cta__arrow {
    width: 36px;
    height: 36px;
  }

  .art {
    --phone-radius: 44px;
    --phone-bezel: 8px;
    width: min(250px, 68vw);
  }

  .art__particle {
    display: none;
  }
}

/* --- 380px · Small phones ---------------------------------- */

@media (max-width: 380px) {
  .brand__name {
    font-size: 19px;
  }

  .headline {
    font-size: 32px;
  }

  .cta {
    font-size: 16px;
  }

  .art {
    --phone-radius: 40px;
    --phone-bezel: 7px;
    width: min(210px, 68vw);
  }
}


/* ============================================================
   15. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim {
    opacity: 1;
  }

  .cursor-glow,
  .art__sheen {
    display: none;
  }
}
