/* Data Fanalytics — Landing Page Styles
   Brand colors matching datafanalytics.com */

:root {
    --bg: #ffffff;
    --surface: #f8f8f8;
    --surface-2: #eef2f7;
    --surface-3: #e2e8f0;
    --text: #2c2c2c;
    --text-muted: #5a6072;
    --accent: #0065cb;
    --accent-hover: #0050a3;
    --accent-light: #e8f1fb;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --border: #e2e8f0;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--surface-2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 101, 203, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full { width: 100%; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat { text-align: center; }

.stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--surface);
}

.section-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cards.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Price Preview Table */
.preview-table-wrap {
    max-width: 750px;
    margin: 0 auto;
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.preview-table th {
    background: var(--accent);
    color: #fff;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preview-table th:not(:first-child) {
    text-align: right;
}

.preview-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.preview-table td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.preview-table tr:hover td {
    background: var(--accent-light);
}

.preview-table .rate-low { color: var(--success); font-weight: 700; }
.preview-table .rate-mid { color: var(--warning); font-weight: 700; }
.preview-table .rate-high { color: var(--danger); font-weight: 700; }

.table-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.table-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.table-note a:hover {
    text-decoration: underline;
}

/* Trust Section */
.trust-section {
    padding: 2.5rem 0;
    background: var(--accent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-item span {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Footer Links */
.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Signup Form */
.signup-form {
    max-width: 440px;
    margin: 0 auto;
}

.ck-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ck-input {
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.ck-input::placeholder { color: var(--text-muted); }

.ck-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 101, 203, 0.15);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Thank You State */
.thank-you {
    text-align: center;
    padding: 2rem 0;
}

.thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thank-you h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.thank-you p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.footer-links {
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 6rem 0 3rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3rem 0; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-section { padding: 2rem 0; }
    .footer-inner { flex-direction: column; }
    .footer-links { text-align: left; }
    .preview-table { font-size: 0.85rem; }
    .preview-table th, .preview-table td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.8rem; }
}
