/* static/css/main.css */

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

/* Global reset */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
#synapse-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
    color: #fff;
}

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

a:hover {
    color: var(--cyan-soft);
}

/* Navigation */
nav {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

nav .logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
}

nav .links {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav .links a {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

nav .links a:hover {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #050810 !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Main page container */
main {
    display: block;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

/* All homepage sections share the same page alignment */
main > section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Hero section */
.hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(
        90deg,
        #fff 0%,
        var(--cyan-soft) 50%,
        var(--violet) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-soft);
    margin-bottom: 40px;
}

/* Why SEOG section */
.why-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.why-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.feature-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: var(--radius);
}

.feature-card h3 {
    color: var(--cyan);
    margin-top: 0;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Wino Engine demonstration */
.engine-section {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0;
    text-align: center;
}

.engine-section h2 {
    font-size: 2rem;
    margin: 0 0 20px;
}

.engine-section p {
    color: var(--text-soft);
    margin: 0 0 30px;
}

/* Video wrapper */
.engine-video {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
    line-height: 0;
}

/* Actual video element */
.engine-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;   /* fills the box with no side bands */
    margin: 0;
    padding: 0;
    border: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan);
}

/* Flash messages */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.flash-messages li {
    padding: 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    margin-bottom: 10px;
}

.flash-messages li.success {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    color: var(--cyan);
}

/* Responsive layout */
@media (max-width: 800px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    nav {
        align-items: flex-start;
        gap: 20px;
    }

    nav .links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px;
    }

    main {
        width: calc(100% - 32px);
        padding: 48px 0;
    }

    .hero {
        margin-bottom: 60px;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .feature-card {
        padding: 24px;
    }

    .engine-section {
        margin-top: 60px;
    }

    .engine-section h2 {
        font-size: 1.75rem;
    }
}

/* ── Password Toggle Eye ────────────────────────────── */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important; /* Make room for the icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--cyan);
}
