:root {
  /* Charte RegiFlow */
  --rf-primary: #0C0C0C;
  --rf-secondary: #383838;
  --rf-accent: #31E9A4;
  --rf-accent-dark: #1DB97F;
  --rf-surface: #1A1A1A;

  /* Text */
  --white: #ffffff;
  --gray: #9CA3AF;
  --gray-light: #D1D5DB;

  /* Glass */
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);

  /* Accent helpers */
  --accent-glow: rgba(49,233,164,0.25);
  --accent-border: rgba(49,233,164,0.4);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--rf-primary);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(49,233,164,0.04), transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(49,233,164,0.03), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 2px; border-radius: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 500; color: var(--gray-light); letter-spacing: 0.01em; }
.nav a:hover { color: var(--white); opacity: 1; }

.header-cta {
  margin-left: 24px;
  padding: 8px 20px;
  background: var(--rf-accent);
  color: var(--rf-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.header-cta:hover { box-shadow: 0 0 24px var(--accent-glow); opacity: 1; }

.header-account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--gray-light);
  transition: all 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}
.header-account:hover { border-color: var(--rf-accent); color: var(--rf-accent); opacity: 1; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--white); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(10px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-10px); }

/* ========== HERO ========== */
.hero { padding: 140px 0 100px; min-height: 90vh; display: flex; align-items: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(49,233,164,0.08);
  border: 1px solid rgba(49,233,164,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--rf-accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--rf-accent); }

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--rf-accent);
  color: var(--rf-primary);
  font-size: 14px; font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { box-shadow: 0 0 32px var(--accent-glow); opacity: 1; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--rf-accent); color: var(--rf-accent); opacity: 1; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.4));
}

.hero-trust { margin-top: 48px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); }
.trust-item .material-icons { font-size: 18px; color: var(--rf-accent); }

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rf-accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 16px; max-width: 600px;
}
.section-desc { font-size: 15px; color: var(--gray); max-width: 540px; margin-bottom: 48px; }

/* ========== PROBLEM / SOLUTION ========== */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.problem-card, .solution-card {
  padding: 36px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.problem-card { border-color: rgba(255,90,90,0.15); background: rgba(255,90,90,0.02); }
.solution-card { border-color: rgba(49,233,164,0.2); background: rgba(49,233,164,0.02); }

.problem-card h3, .solution-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.problem-card .material-icons { color: #FF5A5A; }
.solution-card .material-icons { color: var(--rf-accent); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  padding: 7px 0; padding-left: 24px; position: relative;
  font-size: 14px; color: var(--gray-light); line-height: 1.6;
}
.check-list li::before { content: "✗"; position: absolute; left: 0; color: #FF5A5A; font-weight: 600; }
.solution-card .check-list li::before { content: "✓"; color: var(--rf-accent); }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  padding: 32px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(49,233,164,0.25);
  background: rgba(49,233,164,0.03);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(49,233,164,0.1);
  margin-bottom: 20px;
}
.feature-icon .material-icons { font-size: 24px; color: var(--rf-accent); }

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; }

/* ========== PRODUCTS ========== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card {
  padding: 36px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover { border-color: rgba(49,233,164,0.3); transform: translateY(-2px); }
.product-card.featured { border-color: var(--rf-accent); background: rgba(49,233,164,0.04); }

.product-logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 16px;
}

.product-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--rf-accent); color: var(--rf-primary);
  padding: 4px 14px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}

.product-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.product-subtitle { font-size: 13px; color: var(--gray); margin-bottom: 24px; line-height: 1.5; }

.product-features { list-style: none; margin: 0 0 24px 0; padding: 0; flex: 1; }
.product-features li {
  padding: 6px 0; padding-left: 22px; position: relative;
  font-size: 13px; color: var(--gray-light); line-height: 1.5;
}
.product-features li::before { content: "→"; position: absolute; left: 0; color: var(--rf-accent); font-weight: 600; }

.product-price { margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.product-price .amount { font-size: 28px; font-weight: 700; }
.product-price .period { font-size: 13px; color: var(--gray); margin-left: 4px; }
.product-price .note { display: block; font-size: 12px; color: var(--gray); margin-top: 4px; }

.btn-product {
  display: block; text-align: center;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s ease; cursor: pointer;
}
.btn-product.primary { background: var(--rf-accent); color: var(--rf-primary); }
.btn-product.primary:hover { box-shadow: 0 0 24px var(--accent-glow); opacity: 1; }
.btn-product.outline { background: transparent; border: 1px solid var(--glass-border); color: var(--white); }
.btn-product.outline:hover { border-color: var(--rf-accent); color: var(--rf-accent); opacity: 1; }

/* ========== TRIO ========== */
.trio-section {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trio-card { text-align: left; }
.trio-number { font-size: 48px; font-weight: 200; color: var(--rf-accent); line-height: 1; margin-bottom: 16px; }
.trio-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.trio-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ========== PERMISSIONS ========== */
.permissions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.permission-card {
  padding: 28px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: all 0.3s ease;
}
.permission-card:hover { border-color: rgba(49,233,164,0.2); }
.permission-card .material-icons { font-size: 32px; color: var(--rf-accent); margin-bottom: 16px; display: block; }
.permission-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.permission-card ul { list-style: none; padding: 0; margin: 0; }
.permission-card ul li { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 6px; }
.permission-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ========== CONTACT ========== */
.contact-section { background: radial-gradient(ellipse at center, rgba(49,233,164,0.06), transparent 70%); }
.contact-wrapper { max-width: 560px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 600; margin-bottom: 8px; }
.contact-header p { font-size: 14px; color: var(--gray); }

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 36px;
}

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--gray-light); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  color: var(--white);
  font-size: 14px;
  transition: all 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--rf-accent);
  box-shadow: 0 0 12px rgba(49,233,164,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.checkbox { flex-direction: row; align-items: flex-start; gap: 8px; }
.form-group.checkbox input { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--rf-accent); }
.form-group.checkbox label { margin-bottom: 0; font-weight: 400; font-size: 13px; }
.form-group a { color: var(--rf-accent); }
.error-msg { display: block; font-size: 12px; color: #FF5A5A; margin-top: 4px; min-height: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { font-size: 13px; font-weight: 500; }

/* ========== FOOTER ========== */
.footer { border-top: 1px solid var(--glass-border); padding: 56px 0 32px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 28px; }
.footer-brand span { font-size: 18px; font-weight: 700; }
.footer-desc { font-size: 13px; color: var(--gray); line-height: 1.7; max-width: 280px; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--gray); transition: color 0.2s; }
.footer-links a:hover { color: var(--rf-accent); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--glass-border);
  color: var(--gray); font-size: 12px;
}

/* Store badges */
.app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.app-btn { display: inline-flex; transition: transform 0.2s; }
.app-btn:hover { transform: translateY(-2px); opacity: 1; }
.store-badge { height: 40px; width: auto; }

.btn-glass {
  display: inline-block; padding: 12px 24px;
  border: 1px solid var(--glass-border); background: var(--glass);
  font-size: 14px; font-weight: 500; border-radius: 8px;
  transition: all 0.2s ease; cursor: pointer; color: var(--white);
}
.btn-glass.accent { background: var(--rf-accent); color: var(--rf-primary); border-color: var(--rf-accent); font-weight: 600; }
.btn-glass.accent:hover { box-shadow: 0 0 24px var(--accent-glow); opacity: 1; }

/* ========== LEGAL ========== */
.legal-page { min-height: calc(100vh - 200px); padding: 120px 0 80px; }
.legal-page h1 { font-size: 40px; font-weight: 600; margin-bottom: 48px; }
.legal-content { max-width: 800px; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.legal-content a { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
[data-rf-protected]:empty::after { content: '•••••'; color: var(--gray); opacity: 0.5; }
[data-rf-email]:empty::after { content: '•••••@•••••'; color: var(--gray); opacity: 0.5; }
.legal-content h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; font-weight: 600; }
.legal-content p { font-size: 14px; line-height: 1.8; color: var(--gray); margin-bottom: 14px; }
.legal-content ul { margin: 12px 0 12px 20px; }
.legal-content li { font-size: 14px; line-height: 1.8; color: var(--gray); margin-bottom: 6px; }
.legal-content a { color: var(--rf-accent); }
.legal-content h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); text-align: left; color: var(--gray); }
.legal-table th { font-weight: 600; color: #fff; background: rgba(255,255,255,.04); }
.legal-table td:first-child { color: #fff; font-weight: 500; }

/* ========== FAQ ========== */
.faq-section { padding: 120px 0 64px; }
.faq-intro { text-align: center; margin-bottom: 64px; }
.faq-intro h1 { font-size: 40px; font-weight: 600; margin-bottom: 12px; }
.faq-intro p { font-size: 16px; color: var(--gray); max-width: 500px; margin: 0 auto; }
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: var(--glass); }
.faq-item.active { border-color: rgba(49,233,164,0.3); background: rgba(49,233,164,0.03); }
.faq-question { padding: 20px 24px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.faq-question .icon { font-size: 22px; color: var(--rf-accent); }
.faq-question .toggle { font-size: 22px; color: var(--gray); transition: transform 0.3s ease; }
.faq-item.active .faq-question .toggle { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .trio-grid { grid-template-columns: 1fr; gap: 40px; }
  .permissions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body { padding-top: 64px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-center: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
  .section { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .permissions-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(12,12,12,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px; gap: 12px;
  }
  .nav.active { display: flex; }
  .nav a { font-size: 14px; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .contact-form { padding: 28px 20px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-glass { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 24px; }
  .hero-grid { text-align: center; }
}