/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Grid Logic */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  grid-auto-flow: dense;
}

/* Components */
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--surface);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.socials {
  display: flex;
  gap: 1.5rem;
}

.socials a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.socials a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 77, 158, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(255, 77, 158, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #FFD6EA;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-float);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Text Gradient Fix */
.hero {
  text-align: center;
  padding: 4rem 0;
  overflow: hidden; /* Prevent overflow from floating elements if any */
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FF80BF 0%, #FF4D9E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
}

.hero-visual {
  margin-top: 3rem;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 8px solid #1C1C1E; /* Dark bezel */
  max-width: 280px; /* Mobile default */
  margin-left: auto;
  margin-right: auto;
  background: #1C1C1E;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop Hero Split Layout */
@media (min-width: 992px) {
  .hero {
    text-align: left;
    padding: 4rem 0; /* Reduced padding to fit tall image */
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Give text slightly more space */
    align-items: center;
    gap: 4rem;
  }

  .hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-visual {
    margin-top: 0;
    margin-right: auto; /* Center in its column */
    margin-left: auto;
    max-width: 360px; /* Larger on desktop but still phone-sized relative to screen */
    transform: rotate(-3deg); /* Subtle angle */
    transition: transform 0.3s ease;
  }
  
  .hero-visual:hover {
    transform: rotate(0deg) scale(1.02);
  }
}

/* Features */
.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  background: var(--primary-soft);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

/* Steps */
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
