/* ============================================
   Cartier Noah — Lead Magnet Funnel
   Design System & Shared Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F5;
  --bg-card: #FFFFFF;

  --text-primary: #0A0A0A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-disclaimer: #999999;

  --accent-green: #339af0;
  --accent-green-hover: #228be6;
  --accent-green-light: rgba(51, 154, 240, 0.1);
  --accent-gold: #339af0;
  --accent-gold-light: rgba(51, 154, 240, 0.12);
  --telegram-blue: #2AABEE;
  --telegram-hover: #229ED9;

  --error: #DC3545;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 30px rgba(0, 0, 0, 0.12);

  --max-width: 900px;
  --max-width-narrow: 620px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* --- Typography --- */
.pre-headline {
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}

.headline {
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.2;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.headline .highlight {
  color: var(--accent-green);
}

.subheadline {
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* --- Hero Section --- */
.hero-section {
  padding: 56px 0 0;
  text-align: center;
}

.hero-image-wrapper {
  margin: 0 auto 48px;
  max-width: 860px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    max-width: 100%;
  }
}

/* --- Form Section --- */
.form-section {
  padding: 0 0 64px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
  max-width: 620px;
  margin: 0 auto;
}

.form-card-title {
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.form-card-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 18px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid #D9D9D9;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #B0B0B0;
}

.form-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-light);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-button {
  width: 100%;
  padding: 26px 24px;
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-green);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
  animation: btn-float 2.5s ease-in-out infinite;
}

@keyframes btn-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(51, 154, 240, 0.2); }
  50% { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(51, 154, 240, 0.35); }
}

.form-button:hover {
  background: var(--accent-green-hover);
  animation: none;
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(51, 154, 240, 0.4);
}

.form-button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 2px 8px rgba(51, 154, 240, 0.2);
  animation: none;
}

.form-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-consent {
  font-size: 0.65rem;
  color: var(--text-disclaimer);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* --- Compliance Footer --- */
.compliance-footer {
  background: var(--text-primary);
  color: #999;
  padding: 40px 24px;
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
}

.compliance-footer p {
  max-width: 640px;
  margin: 0 auto;
}

.compliance-footer .copyright {
  color: #BBB;
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.compliance-footer .disclaimer {
  margin-top: 12px;
}

/* --- Thank You Page Styles --- */
.success-banner {
  text-align: center;
  padding: 48px 0 32px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-green);
}

.success-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.nurture-section {
  padding: 32px 0;
}

.nurture-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.nurture-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.nurture-card ul {
  list-style: none;
  padding: 0;
}

.nurture-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.nurture-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* Telegram CTA */
.telegram-cta {
  background: linear-gradient(135deg, #1D95D2 0%, var(--telegram-blue) 100%);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.telegram-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.telegram-cta h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.telegram-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.5;
  position: relative;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #FFFFFF;
  color: #1D95D2;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
}

.telegram-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.telegram-button svg {
  width: 20px;
  height: 20px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 24px 0 48px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.15s; }
.animate-in:nth-child(3) { animation-delay: 0.25s; }
.animate-in:nth-child(4) { animation-delay: 0.35s; }
.animate-in:nth-child(5) { animation-delay: 0.45s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 36px;
  }

  .headline {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .subheadline {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .pre-headline {
    font-size: 0.95rem;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form-card-title {
    font-size: 1.3rem;
  }

  .form-input {
    padding: 16px 16px;
    font-size: 1rem;
  }

  .form-button {
    padding: 22px 24px;
    font-size: 1.3rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding-top: 28px;
  }

  .headline {
    font-size: 1.65rem;
  }

  .form-card {
    padding: 28px 18px;
    border-radius: var(--radius-md);
  }

  .form-button {
    padding: 20px 24px;
    font-size: 1.2rem;
  }

  .telegram-cta {
    padding: 32px 20px;
  }
}
