@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --color-bg: #050505;
  --color-bg-alt: #0e0e10;
  --color-text: #ffffff;
  --color-muted: #a0a0a5;
  --color-primary: #10b981;
  --color-primary-rgb: 16, 185, 129;
  --color-accent: #34d399;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.1);

  --glass-bg: rgba(15, 15, 18, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;

  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(var(--color-primary-rgb), 0.2);

  --font-main: 'Outfit', sans-serif;
  --container-width: 1200px;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Custom Cursor Glow --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin: 0 auto;
}

/* --- Layout Components --- */

.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 16px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-logo {
  height: 50px;
  width: auto;
}

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

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
}

.nav-links a:not(.btn):hover {
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(var(--color-primary-rgb), 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-badge {
  display: inline-block;
  transition: var(--transition);
  height: 54px;
}

.btn-badge img {
  height: 100%;
  width: auto;
  display: block;
}

.btn-badge:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.1);
}

.btn-badge:active {
  transform: translateY(-1px) scale(0.98);
}

/* --- Hero --- */

.hero {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 100px);
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.4rem;
  color: var(--color-muted);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.mockup-container {
  position: relative;
  perspective: 2000px;
  max-width: 340px;
  margin: 0 auto;
}

.mockup-img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 48px;
  border: 12px solid #18181b;
  box-shadow:
    var(--shadow-premium),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    var(--shadow-glow);
  transform: rotateX(10deg) rotateY(-15deg) rotateZ(3deg);
  transition: var(--transition);
  background: #000;
}

.mockup-img:hover {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-20px);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 50px rgba(var(--color-primary-rgb), 0.3);
}

/* Add a notch/dynamic island effect */
.mockup-container::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #18181b;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  /* Match the 3D rotation of the parent or simplified */
  transform: translateX(-50%) rotateX(10deg) rotateY(-15deg) rotateZ(3deg);
  transition: var(--transition);
}

.mockup-container:hover::after {
  transform: translateX(-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-20px);
}

/* --- Features --- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 48px;
  border-radius: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.1), transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--color-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  font-size: 2rem;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--color-muted);
}

/* --- Stats --- */

.stats {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Testimonials --- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 32px;
  color: #eee;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --- CTA --- */

.cta {
  padding: 100px 0;
}

.cta-inner {
  background: linear-gradient(135deg, var(--color-primary), #059669);
  padding: 100px 40px;
  border-radius: 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(var(--color-primary-rgb), 0.4);
}

.cta-inner h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}

.cta-inner p {
  font-size: 1.2rem;
  margin-bottom: 48px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-brand h2 {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--color-muted);
  max-width: 320px;
}

.footer-links h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* --- Legal Pages --- */

.legal-content {
  padding: 160px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 48px;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 48px 0 24px;
  color: #fff;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.legal-content p {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.legal-content ul {
  margin: 0 0 32px 24px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 12px;
  color: var(--color-muted);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Animations --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

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

  .hero h1 {
    font-size: 60px;
  }

  .section {
    padding: 80px 0;
  }
}