/* ============================================================
   Realised – Pre-launch Landing Page
   assets/css/styles.css
   Premium futuristic space / dark purple theme
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
    --bg-void:        #06060f;
    --bg-deep:        #0a0a18;
    --bg-card:        rgba(255,255,255,0.035);
    --bg-card-hover:  rgba(255,255,255,0.06);
    --purple-900:     #1a0533;
    --purple-800:     #2d0d5e;
    --purple-600:     #7c3aed;
    --purple-500:     #9333ea;
    --purple-400:     #a855f7;
    --purple-300:     #c084fc;
    --purple-200:     #e9d5ff;
    --glow-soft:      0 0 40px rgba(147,51,234,0.25);
    --glow-strong:    0 0 60px rgba(168,85,247,0.5);
    --glow-btn:       0 0 30px rgba(147,51,234,0.6), 0 0 60px rgba(147,51,234,0.3);
    --border-glass:   1px solid rgba(147,51,234,0.25);
    --border-input:   1px solid rgba(147,51,234,0.35);
    --text-primary:   #f8f8ff;
    --text-secondary: #c4b5fd;
    --text-muted:     #7c6f9e;
    --radius-card:    20px;
    --radius-input:   12px;
    --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
    --font-body:      'Inter', sans-serif;
    --font-heading:   'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Canvas (stars) ───────────────────────────────────────── */
#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── Atmospheric layers ───────────────────────────────────── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    top: -150px; left: -150px;
    animation: orbDrift1 25s ease-in-out infinite alternate;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(147,51,234,0.14) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: orbDrift2 30s ease-in-out infinite alternate;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(192,132,252,0.1) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbDrift3 20s ease-in-out infinite alternate;
}

@keyframes orbDrift1 { to { transform: translate(60px, 80px); } }
@keyframes orbDrift2 { to { transform: translate(-80px, -60px); } }
@keyframes orbDrift3 { to { transform: translate(-50px, 100px); } }

/* ─── Layout wrapper ───────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ─── Language Toggle ──────────────────────────────────────── */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(10,10,24,0.8);
    border: var(--border-glass);
    border-radius: 30px;
    padding: 4px;
    backdrop-filter: blur(12px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--purple-600);
    color: #fff;
    box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

.lang-btn:hover:not(.active) {
    color: var(--purple-300);
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
}

/* Orbital ring */
.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(147,51,234,0.12);
    pointer-events: none;
}
.orbital-1 { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: orbRot 40s linear infinite; }
.orbital-2 { width: 750px; height: 750px; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(30deg); animation: orbRot 70s linear infinite reverse; }
.orbital-3 { width: 1000px; height: 1000px; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(60deg); animation: orbRot 100s linear infinite; }

@keyframes orbRot { to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbital-2 { animation: orbRot2 70s linear infinite reverse; }
.orbital-3 { animation: orbRot3 100s linear infinite; }
@keyframes orbRot2 { 0% { transform: translate(-50%,-50%) rotate(30deg); } 100% { transform: translate(-50%,-50%) rotate(-330deg); } }
@keyframes orbRot3 { 0% { transform: translate(-50%,-50%) rotate(60deg); } 100% { transform: translate(-50%,-50%) rotate(420deg); } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.15);
    border: var(--border-glass);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-300);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease both;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--purple-400);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-logo {
    font-family: var(--font-heading);
    font-size: clamp(52px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--purple-300) 70%, var(--purple-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s 0.1s ease both;
}

.hero-tagline {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s 0.3s ease both;
}

.hero-sub {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.4);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.25);
    animation: fadeInDown 0.8s 0.2s ease both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--glow-btn);
    transition: var(--transition);
    animation: fadeInDown 0.8s 0.4s ease both;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 50px rgba(147,51,234,0.8), 0 0 100px rgba(147,51,234,0.4);
}

.hero-cta svg {
    transition: transform var(--transition);
}
.hero-cta:hover svg {
    transform: translateX(4px);
}

/* ─── Section ──────────────────────────────────────────────── */
.section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--purple-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 48px;
}

/* ─── Glass Card ───────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--glow-soft);
}

/* ─── Form ─────────────────────────────────────────────────── */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-label span.required {
    color: var(--purple-400);
    margin-left: 4px;
}

.form-label .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: rgba(124,58,237,0.3);
    border: 1px solid rgba(147,51,234,0.5);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--purple-300);
    margin-right: 8px;
}

/* Input base */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: var(--border-input);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 18px;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239333ea' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-select option {
    background: #0d0d1a;
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(147,51,234,0.2), 0 0 20px rgba(147,51,234,0.15);
    background: rgba(255,255,255,0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

/* ─── Checkboxes (Goals) ────────────────────────────────────── */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-item,
.radio-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(147,51,234,0.18);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-item:hover,
.radio-item:hover {
    background: rgba(147,51,234,0.1);
    border-color: rgba(147,51,234,0.4);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(147,51,234,0.5);
    border-radius: 5px;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.radio-item input[type="radio"] {
    border-radius: 50%;
}

.checkbox-item input[type="checkbox"]:checked,
.radio-item input[type="radio"]:checked {
    background: var(--purple-600);
    border-color: var(--purple-500);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px; left: 4px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}

.checkbox-item span,
.radio-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    flex: 1;
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
    background: rgba(124,58,237,0.15);
    border-color: rgba(147,51,234,0.5);
    box-shadow: 0 0 12px rgba(147,51,234,0.15);
}

.checkbox-item:has(input:checked) span,
.radio-item:has(input:checked) span {
    color: var(--text-primary);
}

/* Other goal field */
.other-goal-wrap {
    margin-top: 10px;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Privacy Consent ────────────────────────────────────────── */
.consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: rgba(147,51,234,0.06);
    border: var(--border-glass);
    border-radius: 12px;
}

.consent-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    min-width: 20px;
    border: 2px solid rgba(147,51,234,0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin-top: 2px;
}

.consent-wrap input[type="checkbox"]:checked {
    background: var(--purple-600);
    border-color: var(--purple-500);
}

.consent-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px; left: 4px;
    width: 7px; height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.consent-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

/* ─── Honeypot ───────────────────────────────────────────────── */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ─── Submit Button ──────────────────────────────────────────── */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--glow-btn);
    transition: var(--transition);
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.submit-btn:hover::before { opacity: 1; }

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(147,51,234,0.8), 0 0 100px rgba(147,51,234,0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn-text { transition: var(--transition); }

/* ─── Spinner ─────────────────────────────────────────────────── */
.spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.submit-btn.loading .submit-btn-text { opacity: 0; }
.submit-btn.loading .spinner { display: block; }

/* ─── Error / field message ───────────────────────────────────── */
.field-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 4px;
    display: none;
    animation: shakeIn 0.3s ease;
}
.field-error.visible { display: block; }

@keyframes shakeIn {
    0%  { transform: translateX(-4px); }
    33% { transform: translateX(4px);  }
    66% { transform: translateX(-2px); }
    100%{ transform: translateX(0);    }
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: rgba(248,113,113,0.7);
    box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
}

/* ─── No-spam hint ────────────────────────────────────────────── */
.no-spam-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.2px;
    opacity: 0.85;
}

/* ─── Success / Error Banner ─────────────────────────────────── */
.form-banner {
    display: none;
    padding: 20px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeInDown 0.4s ease;
}

.form-banner.success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.35);
    color: #6ee7b7;
}

.form-banner.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.form-banner.visible { display: flex; align-items: flex-start; gap: 12px; }

.banner-icon { font-size: 20px; flex-shrink: 0; }

/* ─── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--purple-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Features strip ─────────────────────────────────────────── */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 24px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.feature-pill:hover {
    background: rgba(147,51,234,0.12);
    border-color: rgba(147,51,234,0.4);
    color: var(--text-primary);
}

.feature-pill .icon {
    font-size: 16px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(147,51,234,0.12);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.footer a {
    color: var(--purple-400);
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

.footer-gdpr {
    max-width: 600px;
    margin: 12px auto 0;
    font-size: 11px;
    color: rgba(124,111,158,0.7);
}

/* ─── Divider ─────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147,51,234,0.3), transparent);
    margin: 0 auto;
    max-width: 600px;
}

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

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

.animate-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .glass-card { padding: 24px 16px; }
    .goals-grid { grid-template-columns: 1fr 1fr; }
    .radio-group { flex-direction: column; }
    .stats-bar { gap: 24px; padding: 32px 16px; }
    .lang-toggle { top: 12px; right: 12px; }
    .orbital-1, .orbital-2, .orbital-3 { display: none; }
    .feature-pill { padding: 8px 14px; font-size: 12px; }
    .hero { padding: 70px 16px 48px; }
    .section { padding: 48px 16px; }
    .features-strip { padding: 0 16px 48px; gap: 10px; }
    .hero-sub { font-size: 13px; padding: 10px 16px; }
    .hero-cta { padding: 14px 28px; }
    .stats-bar { gap: 20px; }
    .stat-num { font-size: 28px; }
}

@media (max-width: 400px) {
    .goals-grid { grid-template-columns: 1fr; }
}
