/*====================================================
InvoAIce Website
Designed for Launch
====================================================*/

:root {
  --primary: #4338ca;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;

  --background: #f8fafc;
  --surface: #ffffff;

  --text: #0f172a;
  --text-light: #64748b;

  --border: #e2e8f0;

  --radius: 28px;

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);

  --shadow-md: 0 25px 60px rgba(15, 23, 42, 0.08);

  --shadow-lg: 0 40px 90px rgba(15, 23, 42, 0.14);
}

/*=========================
Reset
=========================*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--background);

  color: var(--text);

  line-height: 1.75;

  overflow-x: hidden;
}

img {
  display: block;

  max-width: 100%;
}

a {
  text-decoration: none;

  color: inherit;
}

ul {
  list-style: none;
}

/*=========================
Container
=========================*/

.container {
  width: min(1180px, 92%);

  margin: auto;
}

/*=========================
Animated Background
=========================*/

.background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  z-index: -2;
}

.gradient {
  position: absolute;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  filter: blur(140px);

  opacity: 0.32;
}

.gradient-1 {
  top: -220px;

  left: -180px;

  background: #6366f1;
}

.gradient-2 {
  right: -180px;

  bottom: -220px;

  background: #4338ca;
}

.grid-overlay {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);

  background-size: 40px 40px;
}

/*=========================
Typography
=========================*/

h1 {
  font-size: 4.5rem;

  font-weight: 900;

  line-height: 1.05;

  letter-spacing: -2px;
}

h2 {
  font-size: 3rem;

  font-weight: 800;

  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;

  font-weight: 700;
}

p {
  color: var(--text-light);

  font-size: 1.05rem;
}

.section-header {
  text-align: center;

  margin-bottom: 70px;
}

.section-header span {
  display: inline-block;

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: var(--primary);

  margin-bottom: 18px;
}

.section-header p {
  max-width: 720px;

  margin: auto;

  margin-top: 20px;
}

/*=========================
Navigation
=========================*/

.navbar {
  position: sticky;

  top: 0;

  z-index: 1000;

  backdrop-filter: blur(24px);

  background: rgba(255, 255, 255, 0.7);

  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-left: auto;
}

.logo img {
  width: 44px;

  height: 44px;

  border-radius: 14px;
}

.logo span {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.nav-links a {
  font-weight: 500;

  color: var(--text-light);

  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.download-btn {
  padding: 15px 26px;

  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary), var(--primary-light));

  color: white;

  font-weight: 700;

  box-shadow: var(--shadow-sm);

  transition: 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow-md);
}

/*=========================
Hero
=========================*/

.hero {
  padding: 120px 0;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 90px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;

  max-width: 600px;

  margin: 30px 0 42px;
}

/*=========================
Buttons
=========================*/

.hero-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;
}

.primary-button {
  padding: 18px 34px;

  border-radius: 18px;

  background: linear-gradient(135deg, var(--primary), var(--primary-light));

  color: white;

  font-weight: 700;

  box-shadow: var(--shadow-md);

  transition: 0.35s;
}

.primary-button:hover {
  transform: translateY(-4px);
}

.secondary-button {
  padding: 18px 34px;

  border-radius: 18px;

  background: white;

  border: 1px solid var(--border);

  font-weight: 700;

  transition: 0.35s;
}

.secondary-button:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-sm);
}

/*=========================
Hero Stats
=========================*/

.hero-stats {
  display: flex;

  gap: 55px;

  margin-top: 60px;
}

.hero-stats h2 {
  font-size: 2rem;

  color: var(--primary);

  margin-bottom: 8px;
}

.hero-stats span {
  font-size: 0.95rem;

  color: var(--text-light);
}

/*=========================
Phone
=========================*/

.hero-phone {
  position: relative;

  display: flex;

  justify-content: center;
}

.phone-glow {
  position: absolute;

  width: 450px;

  height: 450px;

  background: #60a5fa;

  opacity: 0.25;

  filter: blur(120px);

  border-radius: 50%;
}

.hero-phone img {
  width: 370px;

  border-radius: 42px;

  position: relative;

  box-shadow: 0 45px 90px rgba(15, 23, 42, 0.18);

  animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }

  100% {
    transform: translateY(0);
  }
}

/*====================================================
FEATURES (BENTO GRID)
====================================================*/

.features {
  padding: 130px 0;
}

.bento-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  grid-auto-rows: 290px;

  gap: 28px;
}

.feature-card {
  position: relative;

  text-align: center;

  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(250, 250, 255, 0.96)
  );

  border: 1px solid rgba(67, 56, 202, 0.08);

  border-radius: 32px;

  padding: 34px;

  box-shadow: var(--shadow-sm);

  transition: 0.35s;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.feature-card::after {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 4px;

  background: linear-gradient(90deg, var(--primary), var(--primary-light));

  transform: scaleX(0);

  transition: 0.35s;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-large {
  grid-column: span 2;
}

.feature-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 16px;

  background: rgba(67, 56, 202, 0.08);

  color: var(--primary);

  border-radius: 999px;

  font-size: 0.82rem;

  font-weight: 700;

  width: max-content;

  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.8rem;

  margin-bottom: 16px;

  line-height: 1.2;
}

.feature-card p {
  max-width: 420px;
}

.feature-card.feature-large img {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: auto;
  object-fit: contain;

  filter: drop-shadow(0 20px 35px rgba(15, 23, 42, 0.16));
}

.feature-card.feature-large:hover img {
  transform: translateY(calc(-50% - 8px));
}

@media (hover: hover) {
  .feature-card:hover img {
    transform: translateY(-8px);
  }
}

.feature-text {
  position: relative;

  z-index: 2;

  max-width: 58%;
}

/*====================================================
SCREENSHOTS
====================================================*/

.screenshots {
  padding: 140px 0;

  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
}

.screenshots-grid {
  display: flex;

  justify-content: center;

  gap: 36px;

  flex-wrap: wrap;
}

.phone-card {
  background: transparent;

  padding: 14px;

  border-radius: 34px;

  box-shadow: var(--shadow-md);

  transition: 0.35s;
  overflow: hidden;
}

.phone-card img {
  width: 220px;

  border-radius: 24px;

  display: block;
}

.phone-card:hover {
  transform: translateY(-16px) scale(1.03);

  box-shadow: var(--shadow-lg);
}

/*====================================================
WORKFLOW
====================================================*/

.workflow {
  padding: 130px 0;
}

.workflow-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.workflow-card {
  background: white;

  padding: 42px;

  border-radius: 30px;

  text-align: center;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: 0.35s;
}

.workflow-card:hover {
  transform: translateY(-10px);

  box-shadow: var(--shadow-lg);
}

.step {
  width: 82px;

  height: 82px;

  margin: auto;

  margin-bottom: 28px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.35rem;

  font-weight: 800;

  color: white;

  background: linear-gradient(135deg, var(--primary), var(--primary-light));

  box-shadow: 0 18px 40px rgba(67, 56, 202, 0.28);
}

.workflow-card h3 {
  margin-bottom: 16px;

  font-size: 1.45rem;
}

/*====================================================
COMMON HOVER EFFECTS
====================================================*/

.phone-card,
.feature-card,
.workflow-card {
  will-change: transform;
}

/*====================================================
SECTION SPACING
====================================================*/

.features,
.screenshots,
.workflow {
  position: relative;
}

.features::before {
  content: "";

  position: absolute;

  top: 60px;

  left: 50%;

  transform: translateX(-50%);

  width: 420px;

  height: 420px;

  background: rgba(99, 102, 241, 0.08);

  filter: blur(130px);

  border-radius: 50%;

  z-index: -1;
}

/*====================================================
FAQ
====================================================*/

.faq {
  padding: 130px 0;
}

.faq-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 28px;
}

.faq-item {
  background: white;

  padding: 34px;

  border-radius: 28px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: 0.3s;
}

.faq-item:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  margin-bottom: 16px;

  font-size: 1.25rem;
}

/*====================================================
FOOTER
====================================================*/

footer {
  padding: 90px 0 50px;

  border-top: 1px solid var(--border);

  background: white;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1fr;

  gap: 50px;
}

.footer-logo {
  width: 58px;

  border-radius: 16px;

  margin-bottom: 20px;
}

footer h3 {
  margin-bottom: 14px;
}

footer h4 {
  margin-bottom: 20px;

  font-size: 1rem;
}

footer p {
  margin-bottom: 12px;
}

footer a {
  display: block;

  margin-bottom: 12px;

  color: var(--text-light);

  transition: 0.3s;
}

footer a:hover {
  color: var(--primary);
}

/*====================================================
RESPONSIVE
====================================================*/

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 70px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-large {
    grid-column: span 2;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .pricing-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }

  .download-btn {
    display: none;
  }

  .hero {
    padding: 80px 0;
  }

  h1 {
    font-size: 2.8rem;

    letter-spacing: -1px;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-phone img {
    width: 280px;
  }

  .hero-stats {
    flex-direction: column;

    gap: 25px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;

    grid-auto-rows: auto;
  }

  .feature-large {
    grid-column: span 1;
  }

  .feature-card.feature-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-card.feature-large .feature-text {
    max-width: 100%;
  }

  .feature-card.feature-large img {
    position: static;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-top: 30px;
    transform: none;
    filter: none;
  }

  .feature-card.feature-large:hover img {
    transform: none;
  }

  .feature-text {
    max-width: 100%;
  }

  .offset {
    margin-top: 0;
  }

  .phone-card img {
    width: 240px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 50px 30px;
  }

  .download-content h2 {
    font-size: 2.2rem;
  }

  .download-card img {
    width: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-logo {
    margin: auto auto 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;

    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .hero {
    padding: 60px 0;
  }

  .feature-card {
    padding: 28px;
  }

  .price-card {
    padding: 34px;
  }

  .download-card {
    border-radius: 28px;
  }

  .section-header {
    margin-bottom: 50px;
  }
}

/*====================================================
SMOOTH ANIMATIONS
====================================================*/

.feature-card,
.phone-card,
.highlight-card,
.workflow-card,
.price-card,
.faq-item {
  will-change: transform;
}

::selection {
  background: var(--primary);

  color: white;
}

.feature-badge svg {
  width: 18px;

  height: 18px;

  stroke-width: 2.3;
}

.hero-chip {
  display: inline-flex;

  align-items: center;

  gap: 10px;
}

.hero-chip svg {
  width: 18px;

  height: 18px;
}

.highlight-icon svg {
  width: 28px;

  height: 28px;

  stroke-width: 2.2;

  color: var(--primary);
}

/*=========================
LEGAL PAGES
=========================*/

.legal-page .section-header,
.legal-page .feature-card,
.legal-page .legal-card {
  text-align: center;
}

.legal-page .feature-card {
  align-items: center;
}

.legal-page .feature-card p {
  max-width: 700px;
  margin: 0 auto;
}

.legal-page .feature-card h2,
.legal-page .feature-card h3,
.legal-page .feature-card a {
  text-align: center;
}

/*==================================
LEGAL PAGE SPACING
==================================*/

.legal-page .legal-card {
  margin-top: 56px;
  padding: 64px 72px;
}

.legal-page .legal-card:first-of-type {
  margin-top: 0;
}

.legal-page .legal-card h2 {
  margin-bottom: 32px;
}

.legal-page .legal-card h3 {
  margin-top: 34px;
  margin-bottom: 14px;
}

.legal-page .legal-card h3:first-of-type {
  margin-top: 0;
}

.legal-page .legal-card p {
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.9;
}

.legal-page .legal-card ul {
  margin-top: 20px;
}

.legal-page .legal-card li {
  margin-bottom: 16px;
  line-height: 1.8;
}
