/* ============================================
   OTOY Studio — Feature Introduction
   Design: Cinematic dark theme with glowing accents
   ============================================ */

:root {
    --bg-deep: #06060f;
    --bg-surface: #0c0c1d;
    --bg-card: #111128;
    --bg-card-hover: #16163a;
    --border: rgba(120, 100, 255, 0.12);
    --border-hover: rgba(120, 100, 255, 0.3);

    --text-primary: #eae8ff;
    --text-secondary: #9b96c4;
    --text-muted: #6b66a0;

    --accent-1: #8b5cf6;
    /* violet */
    --accent-2: #06b6d4;
    /* cyan */
    --accent-3: #f472b6;
    /* pink */
    --accent-glow: rgba(139, 92, 246, 0.35);

    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f472b6 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Outfit', sans-serif;

    --max-w: 1200px;
    --section-pad: 120px 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- NAV ---- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    background: rgba(6, 6, 15, 0.7);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

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

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--gradient-hero);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ---- HERO ---- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -5%;
    right: -5%;
    animation-delay: -4s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(244, 114, 182, 0.08);
    top: 30%;
    right: 20%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -30px) scale(1.15);
    }
}

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

.hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--accent-1);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.hero-line {
    display: block;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-desc strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px var(--accent-glow);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- SECTIONS COMMON ---- */
.section-inner {
    max-width: var(--max-w);
    margin: auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-2);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}

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

/* ---- FEATURES SECTION ---- */
#features {
    padding: var(--section-pad);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.feature-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* ---- MODEL SHOWCASE ---- */
#nano-banana,
#kling {
    padding: var(--section-pad);
}

#nano-banana {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

#kling {
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

.model-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.model-showcase.reverse .model-info {
    order: 2;
}

.model-showcase.reverse .model-visual {
    order: 1;
}

.model-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.model-badge.hot {
    background: rgba(244, 114, 182, 0.15);
    color: var(--accent-3);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.model-badge.pro {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-2);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.model-info h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.model-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.model-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.8;
}

.model-desc strong {
    color: var(--text-primary);
}

.model-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.spec {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.spec-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.spec-value strong {
    color: var(--accent-2);
}

.model-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.highlight {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.highlight p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Visual Cards */
.model-visual {
    position: relative;
}

.visual-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s;
}

.visual-card:hover {
    transform: scale(1.02);
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

.video-card {
    cursor: pointer;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    z-index: 2;
}

.play-indicator svg {
    margin-left: 4px;
}

.play-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.visual-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.vf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ---- ALL MODELS ---- */
#models {
    padding: var(--section-pad);
}

.model-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.model-cat {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.model-cat h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-chip {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.model-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
}

.model-chip.star {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.3);
    color: var(--accent-3);
    font-weight: 600;
}

/* ---- COMPARISON TABLE ---- */
#comparison {
    padding: 0 0 120px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

thead th {
    background: var(--bg-card);
    padding: 16px 20px;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(120, 100, 255, 0.06);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(139, 92, 246, 0.04);
}

.row-highlight {
    background: rgba(139, 92, 246, 0.06) !important;
}

.row-highlight td {
    color: var(--text-primary);
}

.row-section {
    background: rgba(139, 92, 246, 0.12) !important;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

.row-section td {
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-top: 1rem !important;
    padding-bottom: 0.6rem !important;
}

/* ---- CTA ---- */
#cta {
    padding: 0 0 120px;
}

.cta-box {
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box>p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    margin-bottom: 28px;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.cta-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.cta-links a:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--font-display);
}

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .model-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .model-showcase.reverse .model-info {
        order: 1;
    }

    .model-showcase.reverse .model-visual {
        order: 2;
    }

    .model-categories {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .section-inner {
        padding: 0 20px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

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

    .model-specs {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .model-info h2 {
        font-size: 1.8rem;
    }

    .table-wrap {
        margin: 0;
        overflow: visible;
        padding-bottom: 0;
    }

    table {
        min-width: 0;
        border: none;
        background: transparent;
    }

    thead {
        display: none;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tbody tr {
        margin-bottom: 14px;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgba(17, 17, 40, 0.92);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    tbody tr:last-child {
        margin-bottom: 0;
    }

    tbody td {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        margin-bottom: 10px;
        border-bottom: none;
        white-space: normal;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    tbody td:last-child {
        margin-bottom: 0;
    }

    tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .row-highlight {
        background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(17, 17, 40, 0.94)) !important;
        border-color: rgba(139, 92, 246, 0.28);
    }

    .row-section {
        margin: 20px 0 10px;
        padding: 0;
        border: none;
        border-top: none;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .row-section td {
        display: block;
        padding: 0 !important;
        margin: 0;
        font-size: 0.95rem;
        white-space: normal;
    }

    .row-section td::before {
        content: none;
    }

    .cta-links {
        flex-direction: column;
        gap: 12px;
    }
}
