﻿/* ============================================================
   App Community Suite — Shared Styles
   ============================================================ */

:root {
  --primary: #6C63FF;
  --primary-dark: #4E46CC;
  --accent: #FF6B6B;
  --bg: #0D0F14;
  --bg-2: #13161E;
  --bg-3: #1A1E2A;
  --surface: #1E2230;
  --surface-2: #252A3A;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F0F2F8;
  --text-muted: #8B92A8;
  --text-dim: #5E6478;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
  --gradient-hero: linear-gradient(135deg, #1a1040 0%, #0D0F14 60%);
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, #9B59B6 100%);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --section-pad: 96px 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad);
}

/* ── Typography ─────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.5);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ── Navigation ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(108, 99, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: #a8a2ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 580px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Problem/Solution ────────────────────────────────────── */

.problem {
  background: var(--bg-2);
}

.problem-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem h2 {
  color: var(--white);
}

.solution {
  background: var(--bg-3);
}

.solution-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.solution h2 {
  color: var(--white);
}

/* ── Features Grid ───────────────────────────────────────── */

.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(108, 99, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--white);
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ── For Whom ────────────────────────────────────────────── */

.for-whom {
  background: var(--bg-2);
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.for-whom-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--text);
}

.for-whom-item::before {
  content: "✦";
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ── How it works ────────────────────────────────────────── */

.how {
  background: var(--bg-3);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.how-step {
  text-align: center;
}

.how-step-num {
  width: 52px;
  height: 52px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

.how-step h3 {
  color: var(--white);
}

.how-step p {
  font-size: 0.92rem;
}

/* ── CTA Section ─────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, #1a1040 0%, #2a1060 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── Contact ─────────────────────────────────────────────── */

.contact {
  background: var(--bg);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact h2 {
  color: var(--white);
  text-align: center;
}

.contact .section-subtitle {
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand span {
  color: var(--primary);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-rights {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* ── Brochure Preview Section ────────────────────────────── */

.brochure-section {
  background: var(--bg-2);
}

.brochure-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Cover preview card */
.brochure-cover-card {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.bcc-stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #4f46e5, #06b6d4);
}

.bcc-body {
  padding: 28px 28px 20px 36px;
}

.bcc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bcc-logo {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bcc-year {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
}

.bcc-main {
  padding-bottom: 24px;
}

.bcc-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bcc-eyebrow-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #06b6d4;
  flex-shrink: 0;
}

.bcc-eyebrow-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

.bcc-h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.bcc-h1 em {
  font-style: italic;
  background: linear-gradient(90deg, #818cf8, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.bcc-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

.bcc-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 28px 16px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bcc-stat {
  display: flex;
  flex-direction: column;
}

.bcc-stat-num {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.bcc-stat-lbl {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.bcc-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.bcc-pages-badge {
  text-align: center;
  padding: 10px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Description side */
.brochure-eyebrow {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: #a8a2ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.brochure-info h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.brochure-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 460px;
}

.brochure-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brochure-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.brochure-checklist li::before {
  content: "✓";
  color: #818cf8;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.brochure-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .brochure-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brochure-cover-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ── Utilities ───────────────────────────────────────────── */

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --section-pad: 64px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 80vh;
    padding: 72px 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .how-steps {
    gap: 24px;
  }
}

/* ============================================================
   PRINT STYLES — Brochure
   ============================================================ */

@media print {
  :root {
    --bg: #ffffff;
    --bg-2: #f8f8fa;
    --bg-3: #f0f0f5;
    --surface: #ffffff;
    --surface-2: #f4f4f8;
    --text: #0D0F14;
    --text-muted: #4a4f6a;
    --text-dim: #8890a8;
    --border: #e0e0e8;
    --white: #ffffff;
  }

  body {
    background: #fff;
    color: #0D0F14;
    font-size: 11pt;
  }

  nav,
  .hero-actions,
  footer,
  .cta-section,
  .contact,
  .lang-switcher {
    display: none !important;
  }

  .page-break {
    page-break-after: always;
  }

  .page-break-before {
    page-break-before: always;
  }

  .brochure-cover {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1040 0%, #2d1a6e 100%) !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .brochure-cover * {
    color: white !important;
  }

  .brochure-cover h1 {
    font-size: 32pt;
  }

  .brochure-cover .tagline {
    font-size: 14pt;
    opacity: 0.8;
  }

  h2 {
    color: #1a1040 !important;
  }

  h3 {
    color: #2d1a6e !important;
  }

  .feature-card,
  .for-whom-item {
    border-color: #e0e0e8 !important;
    break-inside: avoid;
  }

  .section-title {
    color: #1a1040 !important;
  }

  a {
    color: #6C63FF;
  }
}