/* ========================================
   RemoteAgent.co.za - Main Stylesheet
   Brand: Deep teal/emerald + warm gold accent
   A CodeSpec Company
   ======================================== */

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

:root {
    /* Brand colors */
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #14b8a6;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --space: 8px;
    --max-width: 1120px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'DM Sans', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--teal-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.logo:hover {
    color: var(--teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
}
.nav-links a:hover {
    color: var(--teal);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    background: var(--teal);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-strong);
    cursor: pointer;
    transition: all 0.25s;
}
.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}

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

/* ---- Hero ---- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 40%, #0f172a 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal-light), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-cta .btn-primary {
    background: var(--teal);
    color: white;
}
.hero-cta .btn-primary:hover {
    background: var(--teal-light);
}

.hero-cta .btn-outline {
    border-color: rgba(248, 250, 252, 0.3);
    color: var(--text-white);
}
.hero-cta .btn-outline:hover {
    border-color: var(--teal-light);
    color: var(--teal-light);
}

.hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-badges span {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.5);
    padding: 6px 16px;
    border: 1px solid rgba(248, 250, 252, 0.15);
    border-radius: 100px;
}

/* ---- Section ---- */
.section {
    padding: calc(var(--space) * 16) 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-alt);
}

.section-accent {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto calc(var(--space) * 10);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 12px;
}
.section-label.light {
    color: var(--teal-light);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--text);
}

.section-alt .section-header h2 {
    color: var(--text);
}

.section-accent .section-header h2 {
    color: var(--text-white);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

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

/* ---- Two Column Cards ---- */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.column-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}
.column-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(245,158,11,0.08));
    color: var(--teal);
    margin-bottom: 24px;
}

.column-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text);
}

.column-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.9375rem;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* ---- Steps ---- */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.step-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: var(--teal);
    flex-shrink: 0;
}

/* ---- Grid 3 ---- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.grid-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}
.grid-card:hover {
    transform: translateY(-3px);
}

.grid-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--text);
}

.grid-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ---- Waitlist Form ---- */
.signup-box {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.signup-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    color: var(--text-white);
}

.signup-box p {
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.waitlist-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(248, 250, 252, 0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.form-row input::placeholder {
    color: rgba(248, 250, 252, 0.4);
}
.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--teal-light);
    background: rgba(255,255,255,0.12);
}

.form-row select option {
    color: var(--text);
    background: white;
}

.form-row .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.125rem;
    background: var(--gold);
    color: #0f172a;
}
.form-row .btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.form-note {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.4);
    margin-top: 12px;
    margin-bottom: 0;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(13,148,136,0.15);
    color: var(--teal-light);
    border: 1px solid rgba(13,148,136,0.3);
}
.form-message.error {
    display: block;
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.3);
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark);
    padding: calc(var(--space) * 12) 0 calc(var(--space) * 6);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.footer-brand .logo {
    color: var(--text-white);
    margin-bottom: 12px;
}
.footer-tagline {
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.9375rem;
    margin-left: 38px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.9375rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    text-align: center;
    border-top: 1px solid rgba(248, 250, 252, 0.08);
    margin-top: 48px;
}
.footer-bottom p {
    color: rgba(248, 250, 252, 0.35);
    font-size: 0.8125rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links a:not(.btn-primary) {
        display: none;
    }
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn-lg {
        width: 100%;
        justify-content: center;
    }
}