/* Fail: style.css */
:root {
    --bg-dark: #0a192f;       /* Tume ookeanisinine */
    --bg-card: #112240;       /* Kaartide taust */
    --text-main: #e6f1ff;     /* Peamine hele tekst */
    --text-muted: #8892b0;    /* Hallikas tekst */
    --accent: #64ffda;        /* Neoon-tsüaan aktsent */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hoiab footeri all */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* HEADER */
header {
    padding: 20px 0;
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; font-family: var(--font-mono); font-size: 0.85rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    transition: 0.3s;
}
.btn:hover { background: rgba(100, 255, 218, 0.1); }

/* CONTENT STYLES */
main { flex: 1; padding: 80px 0; }

h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 25px; color: #ccd6f6; }
h2 { font-size: 2rem; margin-bottom: 30px; color: #e6f1ff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; display: inline-block; }
p { color: var(--text-muted); margin-bottom: 20px; max-width: 650px; }

/* GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 6px;
    transition: transform 0.2s;
    border: 1px solid transparent;
}
.card:hover { transform: translateY(-7px); border-color: rgba(100, 255, 218, 0.2); }
.card-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #fff; }

/* FORMS */
.form-box { background: var(--bg-card); padding: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
input, textarea {
    width: 100%; padding: 12px;
    background: #0a192f; border: 1px solid #233554;
    color: #fff; border-radius: 4px; outline: none;
    font-family: var(--font-main);
}
input:focus, textarea:focus { border-color: var(--accent); }

/* LEGAL PAGES */
.legal-content h3 { color: #fff; margin-top: 30px; margin-bottom: 15px; font-size: 1.2rem; }
.legal-content ul { list-style: disc; margin-left: 20px; color: var(--text-muted); margin-bottom: 20px; }
.legal-content li { margin-bottom: 8px; }

/* FOOTER */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #0a192f;
    margin-top: auto;
}
.footer-links { margin-bottom: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.footer-links a { color: var(--text-muted); margin: 0 15px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.copyright { color: var(--text-muted); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; opacity: 0.7; }

/* NEWSLETTER BOX */
.newsletter-section {
    margin-top: 80px;
    background: linear-gradient(145deg, #112240 0%, #0a192f 100%);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 60px 24px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #64ffda 0%, #0a192f 100%);
}
.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.newsletter-form input {
    max-width: 300px;
    background: rgba(255,255,255,0.05);
}