/* =============================================
   SmartCard AI - Tech-Forward Dark Theme
   Teal, Dark Slate & Cyan with Code Aesthetics
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #0d9488;
    --teal-light: #2dd4bf;
    --teal-dark: #0f766e;
    --cyan: #06b6d4;
    --cyan-light: #67e8f9;
    --slate: #1e293b;
    --slate-2: #334155;
    --slate-3: #475569;
    --dark: #0f172a;
    --dark-2: #1a2332;
    --green: #22c55e;
    --green-dark: #16a34a;
    --orange: #f59e0b;
    --white: #e2e8f0;
    --text: #94a3b8;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    font-family: var(--font-heading);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.accent {
    color: var(--teal-light);
}

/* --- Navigation --- */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--teal-light);
}

.logo span {
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--slate-3);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 3rem;
    position: relative;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--teal-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(13, 148, 136, 0.2);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal-light);
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--slate-3);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: var(--dark);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--teal-light);
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.btn-ghost:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--teal-light);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* --- Terminal Window --- */
.hero-terminal {
    position: relative;
    z-index: 1;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.terminal-dot:nth-child(2) {
    background: #f59e0b;
}

.terminal-dot:nth-child(3) {
    background: #22c55e;
}

.terminal-title {
    margin-left: 1rem;
    font-size: 0.75rem;
    color: var(--slate-3);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
}

.terminal-body .line {
    display: block;
    color: var(--slate-3);
}

.terminal-body .line.highlight {
    color: var(--teal-light);
    padding-left: 1rem;
}

.prompt {
    color: var(--green);
    margin-right: 0.5rem;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Sections Common --- */
section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal);
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features-section {
    background: var(--dark-2);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.code-comment {
    color: var(--slate-3);
}

.code-line {
    display: block;
    color: var(--white);
}

.code-line.indent {
    padding-left: 1.5rem;
}

.code-string {
    color: var(--orange);
}

.code-boolean {
    color: var(--cyan-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
}

/* --- Rewards Section --- */
.rewards-section {
    background: var(--dark);
}

.rewards-showcase {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

.reward-card:hover {
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateX(8px);
}

.reward-icon {
    font-size: 2rem;
}

.reward-data {
    flex: 1;
}

.reward-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
    display: block;
}

.reward-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-light);
    display: block;
}

.reward-desc {
    font-size: 0.8rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.reward-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.reward-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--dark-2);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-block {
    padding: 1.5rem;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-light);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
    background: var(--dark-2);
    text-align: center;
    padding: 5rem 2rem 3.5rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.08);
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.page-hero-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate-3);
}

/* --- Legal Content --- */
.page-content {
    background: var(--dark);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    padding: 3rem;
}

.legal-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 2rem 0 0.8rem;
    font-family: var(--font-mono);
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.disclaimer-box {
    background: rgba(13, 148, 136, 0.03);
    border-left: 3px solid var(--teal);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.disclaimer-box ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.disclaimer-box li {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info .legal-card h2 {
    font-family: var(--font-heading);
}

.contact-channel {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.06);
}

.channel-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-channel h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.contact-channel p {
    font-size: 0.85rem !important;
    color: var(--text) !important;
    margin-bottom: 0 !important;
}

.contact-channel span {
    font-size: 0.72rem;
    color: var(--teal-light);
    font-family: var(--font-mono);
}

/* --- Form --- */
.contact-form h3 {
    font-size: 1.3rem;
    font-family: var(--font-mono);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.form-group select {
    color: var(--text);
}

.checkbox-group {
    margin: 1.2rem 0;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--teal);
}

.checkbox-text {
    font-size: 0.8rem !important;
    color: var(--text) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    font-family: var(--font-heading) !important;
}

/* --- Footer --- */
footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(13, 148, 136, 0.08);
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--slate-3);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--teal);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links a {
    display: block;
    color: var(--slate-3);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-family: var(--font-mono);
}

.footer-links a:hover {
    color: var(--teal-light);
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--slate-3);
}

.footer-bottom {
    border-top: 1px solid rgba(13, 148, 136, 0.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-prompt {
    color: var(--green);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-3);
    font-family: var(--font-mono);
}

.footer-bottom p:first-child {
    color: var(--teal);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 4rem 2rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-metrics {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.78rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 3rem 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .terminal-window {
        display: none;
    }
}
