/* Design System & Custom Properties */
:root {
    /* Color Palette */
    --color-primary: #05344a;      /* Deep Slate Blue */
    --color-primary-rgb: 5, 52, 74;
    --color-cream: #FCF1D7;        /* Cream / Warm Ivory */
    --color-cream-rgb: 252, 241, 215;
    --color-crimson: #b40023;      /* Crimson Red */
    --color-crimson-rgb: 180, 0, 35;
    --color-crimson-hover: #90001b;
    --color-ice-blue: #dbf1ef;     /* Ice Blue */
    --color-dark-gray: #151413;    /* Secondary Dark */
    --color-light-gray: #858e96;

    /* Theme Variables (Default Dark) */
    --bg-main: var(--color-primary);
    --text-main: var(--color-cream);
    --text-muted: rgba(252, 241, 215, 0.7);
    --card-bg: rgba(252, 241, 215, 0.05);
    --card-bg-hover: rgba(252, 241, 215, 0.1);
    --card-border: rgba(252, 241, 215, 0.15);
    --border-color: rgba(252, 241, 215, 0.1);
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px 0 rgba(0, 0, 0, 0.45);
    --header-bg: rgba(5, 52, 74, 0.85);

    /* Fonts */
    --font-fa: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --font-en: 'Playfair Display', Georgia, serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
}

/* Light Theme Variables */
body.light-theme {
    --bg-main: #fbf7ee; /* Warm soft ivory */
    --text-main: var(--color-primary);
    --text-muted: rgba(5, 52, 74, 0.75);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-hover: #ffffff;
    --card-border: rgba(5, 52, 74, 0.12);
    --border-color: rgba(5, 52, 74, 0.08);
    --shadow-main: 0 8px 32px 0 rgba(180, 160, 130, 0.15);
    --shadow-hover: 0 16px 48px 0 rgba(180, 160, 130, 0.25);
    --header-bg: rgba(251, 247, 238, 0.9);
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-fa);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.font-playfair {
    font-family: var(--font-en);
}

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

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-fa);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-crimson);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(180, 0, 35, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-crimson-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 0, 35, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--card-bg-hover);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

.btn-xl {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(180, 0, 35, 0.25);
    box-shadow: var(--shadow-hover);
}

/* Section Common Layouts */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-main);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 64px;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 30px;
}

/* Toggle Logo Visibility based on Theme */
body.light-theme .logo-light-theme { display: none !important; }
body.light-theme .logo-dark-theme { display: block !important; }
body:not(.light-theme) .logo-light-theme { display: block !important; }
body:not(.light-theme) .logo-dark-theme { display: none !important; }

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-crimson);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-crimson);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background-color: var(--card-bg-hover);
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Toggle Icons depending on light-theme class */
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }
body:not(.light-theme) .sun-icon { display: block; }
body:not(.light-theme) .moon-icon { display: none; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, #031c28 100%);
    color: var(--color-cream);
}

body.light-theme .hero-section {
    background: linear-gradient(135deg, #fcf8ee 0%, #f0e6ce 100%);
    color: var(--color-primary);
}

.hero-glow-blob {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 0, 35, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

body.light-theme .hero-glow-blob {
    background: radial-gradient(circle, rgba(180, 0, 35, 0.08) 0%, rgba(0,0,0,0) 70%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo-area {
    width: min(420px, 84vw);
    margin: 0 auto 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    direction: ltr;
}

.hero-logo-icon {
    flex: 0 0 auto;
    width: clamp(220px, 36vw, 380px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-logo-wordmark {
    flex: 1 1 auto;
    min-width: 0;
    width: min(373px, 56vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-content {
    text-align: center;
    max-width: 850px;
    z-index: 2;
}

.hero-min-capital {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 0;
}

.badge-pill {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
}

body.light-theme .badge-pill {
    background: transparent;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-crimson);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(252, 241, 215, 0.85);
    margin-bottom: 40px;
}

body.light-theme .hero-subtitle {
    color: rgba(5, 52, 74, 0.85);
}

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

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    color: var(--bg-main);
    transition: color 0.5s ease;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Core Value (Ownership) */
.ownership-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.ownership-card {
    display: flex;
    gap: 32px;
    padding: 40px;
    align-items: center;
    border-radius: 24px;
}

.ownership-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(180, 0, 35, 0.1);
    color: var(--color-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shield-icon {
    width: 40px;
    height: 40px;
}

.ownership-text h2 {
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.ownership-text p {
    margin-bottom: 0;
}

/* Why Capture 3 Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-card-icon {
    color: var(--color-crimson);
    margin-bottom: 24px;
}

.why-card-icon svg {
    width: 40px;
    height: 40px;
}

.why-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.why-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Collaboration Model Timeline */
.how-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.support-badge {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-top: 36px;
    border-radius: var(--border-radius-lg);
    background: rgba(220, 241, 239, 0.05);
}

body.light-theme .support-badge {
    background: rgba(5, 52, 74, 0.02);
}

.support-badge-icon {
    color: var(--color-crimson);
    flex-shrink: 0;
}

.support-badge-icon svg {
    width: 36px;
    height: 36px;
}

.support-badge h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.support-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.how-cta-wrapper {
    margin-top: 36px;
}

.how-steps-timeline {
    position: relative;
    padding-right: 32px;
}

.how-steps-timeline::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 15px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    top: 4px;
    right: -48px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--color-crimson);
    color: var(--color-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-num {
    background-color: var(--color-crimson);
    color: #ffffff;
    transform: scale(1.1);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Brand Showcase Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(180, 0, 35, 0.3);
}

.gallery-img-wrapper {
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: #000;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Target Audience & Illustration */
.audience-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.audience-card {
    padding: 48px;
}

.audience-list {
    list-style: none;
    margin-top: 32px;
}

.audience-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.audience-list li:last-child {
    margin-bottom: 0;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--color-crimson);
    flex-shrink: 0;
    margin-top: 2px;
}

.audience-illustration {
    display: flex;
    justify-content: center;
}

.illustration-card {
    padding: 40px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
}

.metric-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 0, 35, 0.15) 0%, rgba(0,0,0,0) 80%);
    border: 2px solid rgba(180, 0, 35, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 0 30px rgba(180, 0, 35, 0.1);
}

.metric-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

body.light-theme .metric-num {
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-details {
    width: 100%;
}

.metric-bar-wrapper {
    margin-bottom: 20px;
}

.metric-bar-wrapper:last-child {
    margin-bottom: 0;
}

.metric-bar-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.metric-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background-color: var(--color-crimson);
    border-radius: 3px;
}

/* Capture Team Section */
.team-section {
    padding-top: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
}

.team-card {
    padding: 8px 6px 6px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.team-card::before {
    content: none;
}

.team-card:hover {
    border-color: transparent;
    box-shadow: none;
}

.team-avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(180, 0, 35, 0.9), rgba(252, 241, 215, 0.28));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    margin-bottom: 14px;
}

.team-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(252, 241, 215, 0.08), rgba(252, 241, 215, 0.02));
    border: 1px solid rgba(252, 241, 215, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(252, 241, 215, 0.88);
}

body.light-theme .team-avatar-inner {
    background: radial-gradient(circle at 50% 35%, rgba(5, 52, 74, 0.08), rgba(5, 52, 74, 0.02));
    border-color: rgba(5, 52, 74, 0.08);
    color: rgba(5, 52, 74, 0.82);
}

.team-avatar-inner svg {
    width: 44px;
    height: 44px;
}

.team-name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.team-role {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.team-history {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-history li {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

body.light-theme .team-history li {
    background: transparent;
}

/* Call to Action Steps Section */
.steps-section {
    padding-bottom: 120px;
}

.steps-container {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
}

.steps-action-wrapper {
    margin-top: 36px;
}

/* Footer styling */
.main-footer {
    background-color: #031621;
    color: rgba(252, 241, 215, 0.8);
    border-top: 1px solid rgba(252, 241, 215, 0.05);
    padding: 80px 0 40px;
    transition: var(--transition-smooth);
}

body.light-theme .main-footer {
    background-color: #ebdcb9; /* Warm dark cream footer */
    color: rgba(5, 52, 74, 0.8);
    border-top: 1px solid rgba(5, 52, 74, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 32px !important;
    margin-bottom: 20px;
}

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

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

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--color-crimson);
    padding-right: 4px;
}

.footer-disclaimer {
    background: rgba(180, 0, 35, 0.05);
    border: 1px dashed rgba(180, 0, 35, 0.25);
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(252, 241, 215, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(5, 52, 74, 0.08);
}

/* Modals & Telegram Auth Funnel */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 15, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 640px;
    padding: 40px;
    position: relative;
    border-radius: 24px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background-color: var(--card-bg-hover);
    transform: scale(1.1);
}

.modal-step {
    display: none;
}

.modal-step.is-active {
    display: block;
}

.modal-header {
    margin-bottom: 28px;
    padding-left: 20px;
}

.modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--color-crimson-rgb), 0.12);
    color: var(--color-crimson);
    font-size: 0.82rem;
    font-weight: 700;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.auth-benefits-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-benefit-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

body.light-theme .auth-benefit-card {
    background: rgba(5, 52, 74, 0.03);
}

.auth-benefit-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-benefit-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.modal-note-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(var(--color-cream-rgb), 0.12);
    background: rgba(var(--color-cream-rgb), 0.04);
    color: var(--text-muted);
}

body.light-theme .modal-note-box {
    border-color: rgba(var(--color-primary-rgb), 0.12);
    background: rgba(var(--color-primary-rgb), 0.03);
}

.auth-status-panel {
    min-height: 80px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    line-height: 1.9;
}

.auth-status-panel[data-state="loading"] {
    border-color: rgba(66, 165, 245, 0.32);
    color: #9cd0ff;
}

.auth-status-panel[data-state="success"] {
    border-color: rgba(76, 175, 80, 0.3);
    color: #8de59a;
}

.auth-status-panel[data-state="error"] {
    border-color: rgba(var(--color-crimson-rgb), 0.32);
    color: #ffb8c4;
}

body.light-theme .auth-status-panel {
    background: rgba(5, 52, 74, 0.03);
}

.telegram-widget-shell {
    min-height: 120px;
    margin-bottom: 18px;
    padding: 24px 18px;
    border-radius: 18px;
    border: 1px dashed var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.light-theme .telegram-widget-shell {
    background: rgba(5, 52, 74, 0.02);
}

.telegram-widget-placeholder {
    color: var(--text-muted);
    max-width: 360px;
}

.telegram-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.questionnaire-body {
    min-height: 100vh;
}

.questionnaire-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.questionnaire-section {
    width: 100%;
    padding: 0;
}

.questionnaire-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
}

.questionnaire-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(var(--color-crimson-rgb), 0.14);
    color: var(--color-crimson);
    font-size: 0.85rem;
    font-weight: 700;
}

.questionnaire-state {
    margin-top: 28px;
}

.questionnaire-user-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.22);
    background: rgba(76, 175, 80, 0.08);
}

.questionnaire-placeholder-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.questionnaire-placeholder-item {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

body.light-theme .questionnaire-placeholder-item {
    background: rgba(5, 52, 74, 0.03);
}

.questionnaire-warning-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Scroll Trigger Animations & Class additions */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(180, 0, 35, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(180, 0, 35, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(180, 0, 35, 0);
    }
}

.pulse-animation {
    animation: button-pulse 2.2s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 4px 14px rgba(180, 0, 35, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(180, 0, 35, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 14px rgba(180, 0, 35, 0.3);
    }
}

/* Fade-in keyframe animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero-pill { animation-delay: 0.1s; }
#hero-title { animation-delay: 0.25s; }
#hero-subtitle { animation-delay: 0.4s; }
#hero-actions { animation-delay: 0.55s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN (Mobile First)
   ========================================= */

/* Tablets / Medium Screens */
@media (max-width: 992px) {
    .section-title { font-size: 1.9rem; }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .how-grid-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .audience-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .audience-illustration {
        order: -1; /* Place illustration above list on tablets */
    }
}

/* Mobile Devices / Small Screens */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Navigation drawer for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 280px;
        background-color: var(--bg-main);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
        z-index: 101;
        padding: 100px 32px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.15rem;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Handle mobile menu state toggle cross shape */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hide button in header for mobile to save space */
    #header-cta-btn {
        display: none;
    }
    
    /* Hero */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 80px;
    }

    .hero-logo-area {
        width: min(280px, 70vw);
        margin-bottom: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .hero-logo-icon {
        width: clamp(96px, 28vw, 125px);
        max-width: 68%;
    }

    .hero-logo-wordmark {
        width: min(220px, 62vw);
        max-width: 100%;
        flex: 0 1 auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Ownership */
    .ownership-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    /* Why grid */
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-card {
        padding: 8px 4px 4px;
    }

    .team-avatar-ring {
        width: 82px;
        height: 82px;
    }

    .team-avatar-inner svg {
        width: 36px;
        height: 36px;
    }

    .team-name {
        font-size: 0.95rem;
    }

    .team-role {
        font-size: 0.78rem;
    }

    .team-history li {
        font-size: 0.76rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Audience */
    .audience-card {
        padding: 24px;
    }
    
    .audience-list li {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    
    /* Modal Card */
    .modal-card {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}
