/*
Theme Name: NanoTub Editable Block Theme
Theme URI: https://getfromtaimur.com/
Author: OpenAI for Taimur
Author URI: https://getfromtaimur.com/
Description: A custom WordPress block theme inspired by the attached NanoTub landing page, with editable header and footer template parts.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nanotub-editable-theme
Tags: block-patterns, full-site-editing, custom-colors, one-column, custom-logo, featured-images
*/

:root {
    --navy: #060e1a;
    --navy-mid: #0a1628;
    --navy-light: #0e2040;
    --teal: #00c9b1;
    --teal-glow: rgba(0, 201, 177, 0.15);
    --teal-border: rgba(0, 201, 177, 0.25);
    --gold: #f5a623;
    --gold-glow: rgba(245, 166, 35, 0.15);
    --white: #ffffff;
    --muted: #64748b;
    --body: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: var(--body);
}

body .wp-site-blocks {
    padding-top: 0;
    padding-bottom: 0;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s linear;
}

.nanotub-site-header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 60px;
    min-height: 68px;
    background: rgba(6, 14, 26, 0);
    transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

.nanotub-site-header.is-scrolled {
    background: rgba(6, 14, 26, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nanotub-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 68px;
}

.nanotub-site-header .wp-block-site-title,
.nanotub-site-header .wp-block-site-title a {
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nanotub-site-header .wp-block-navigation-item__content,
.nanotub-site-header .wp-block-navigation__responsive-container-open,
.nanotub-site-header .wp-block-navigation__responsive-container-close {
    color: rgba(255, 255, 255, 0.7);
}

.nanotub-site-header .wp-block-navigation-item__content:hover {
    color: var(--teal);
}

.nanotub-site-header .wp-block-button__link {
    background: var(--teal);
    color: var(--navy);
    padding: 10px 22px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nanotub-home {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
    background: var(--navy);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.nanotub-home section,
.nanotub-home .scene-divider,
.nanotub-home footer,
.nanotub-home .closing-section {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 60%, rgba(0,201,177,0.07) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 20%, rgba(245,166,35,0.05) 0%, transparent 60%),
                var(--navy);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.scene-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.scene-tag::before,
.scene-tag::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--teal);
    opacity: 0.5;
}

.hero-eyebrow {
    color: var(--body);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-eyebrow em {
    font-style: normal;
    color: var(--white);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero h1 .teal { color: var(--teal); }
.hero h1 .gold { color: var(--gold); }

.hero-sub {
    font-size: 20px;
    line-height: 1.7;
    color: var(--body);
    max-width: 680px;
    margin: 0 auto 48px;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero-actions,
.closing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions {
    opacity: 0;
    animation: fadeUp 0.8s 1.1s forwards;
}

.btn-primary,
.btn-outline,
.nanotub-home .button-like {
    padding: 18px 40px;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary,
.nanotub-home .button-like.primary {
    background: var(--teal);
    color: var(--navy);
    font-weight: 700;
}

.btn-outline,
.nanotub-home .button-like.outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}

.btn-primary:hover,
.btn-outline:hover,
.nanotub-home .button-like:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scene-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-border), transparent);
    margin: 0;
}

.section {
    padding: 120px 60px;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.scene-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.scene-num {
    width: 36px;
    height: 36px;
    border: 1px solid var(--teal-border);
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scene-name {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    color: var(--white);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--body);
    font-size: 18px;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 60px;
}

.science-section { background: var(--navy-mid); }
.synergy-section { background: var(--navy); }
.clinical-section { background: var(--navy-mid); }
.features-section { background: var(--navy); }

.science-layout,
.demo-layout,
.ozone-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.bubble-vis {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--teal-border);
    animation: pulse-ring 3s ease-in-out infinite;
}

.bubble-ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.bubble-ring:nth-child(2) { width: 220px; height: 220px; animation-delay: 0.5s; opacity: 0.7; }
.bubble-ring:nth-child(3) { width: 320px; height: 320px; animation-delay: 1s; opacity: 0.4; }
.bubble-ring:nth-child(4) { width: 420px; height: 420px; animation-delay: 1.5s; opacity: 0.2; }

.bubble-core {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bubble-big-num {
    font-size: 58px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.bubble-big-num span {
    color: var(--teal);
    font-size: 28px;
}

.bubble-label {
    color: var(--body);
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 1px;
}

.science-text p,
.synergy-result p,
.ozone-panel p,
.demo-copy p,
.closing-inner p,
.studies-bar p,
.form-sub {
    color: var(--body);
}

.science-text p,
.ozone-panel p,
.demo-copy p,
.studies-bar p,
.closing-inner p {
    font-size: 16px;
    line-height: 1.8;
}

.compare-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.compare-col,
.element-block,
.stat-block,
.ozone-panel,
.feat-card,
.demo-form,
.page-shell,
.blog-shell {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.compare-col {
    padding: 24px;
}

.compare-col.nanotub { border-top: 3px solid var(--teal); }
.compare-col.standard { border-top: 3px solid var(--muted); }

.compare-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.compare-col.nanotub h4 { color: var(--teal); }
.compare-col.standard h4 { color: var(--muted); }

.compare-col ul,
.element-block ul,
.demo-perks {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.compare-col li,
.element-block li,
.demo-perks li {
    color: var(--body);
    display: flex;
    gap: 12px;
}

.compare-col li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.compare-col.nanotub li i { color: var(--teal); }
.compare-col.standard li i { color: var(--muted); }

.synergy-merge {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 48px;
}

.element-block {
    padding: 50px 40px;
}

.element-block.h2-block { border-top: 4px solid var(--gold); }
.element-block.o2-block { border-top: 4px solid var(--teal); }

.element-sym {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.h2-block .element-sym,
.h2-block .element-role,
.h2-block li i { color: var(--gold); }
.o2-block .element-sym,
.o2-block .element-role,
.o2-block li i,
.demo-perks li i,
.contact-item i,
.form-icon,
.studies-bar i { color: var(--teal); }

.element-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.element-block li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.element-block li strong,
.stat-title,
.ozone-panel h3,
.feat-card h4,
.demo-form h3,
.synergy-result h3,
.studies-bar h4,
.contact-item,
.page-shell h1,
.blog-shell h1,
.blog-shell h2,
.blog-shell h3 {
    color: var(--white);
}

.plus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    font-size: 36px;
    font-weight: 900;
    color: var(--white);
    background: var(--navy);
    border-top: 4px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.synergy-result {
    background: linear-gradient(135deg, var(--gold-glow), var(--teal-glow));
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px 50px;
    text-align: center;
}

.synergy-result h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.stats-ticker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.stat-block {
    padding: 40px 32px;
    border-top: 3px solid var(--teal);
    position: relative;
    overflow: hidden;
}

.stat-block:nth-child(2) { border-top-color: var(--gold); }

.stat-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-border), transparent);
}

.stat-block:nth-child(2)::after {
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.2), transparent);
}

.stat-num {
    font-size: 64px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-num sup {
    font-size: 28px;
    color: var(--teal);
}

.stat-block:nth-child(2) .stat-num sup { color: var(--gold); }

.stat-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-desc,
.feat-card p,
.form-note,
.page-shell p,
.page-shell li,
.blog-shell p,
.blog-shell li,
.blog-shell blockquote,
.blog-shell figcaption {
    color: var(--body);
}

.stat-desc,
.feat-card p {
    font-size: 14px;
    line-height: 1.6;
}

.stat-source {
    margin-top: 16px;
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
}

.studies-bar {
    background: linear-gradient(90deg, var(--teal-glow), var(--gold-glow));
    border: 1px solid var(--teal-border);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.studies-bar i {
    font-size: 32px;
    flex-shrink: 0;
}

.ozone-split {
    gap: 32px;
    margin-bottom: 48px;
}

.ozone-panel {
    padding: 40px;
    position: relative;
}

.ozone-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.ozone-panel.therapy::before { background: var(--gold); }
.ozone-panel.sanitation::before { background: var(--teal); }

.ozone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.ozone-panel.therapy .ozone-icon { background: var(--gold-glow); color: var(--gold); }
.ozone-panel.sanitation .ozone-icon { background: var(--teal-glow); color: var(--teal); }

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

.feat-card {
    padding: 28px 24px;
    text-align: center;
}

.feat-card i {
    font-size: 28px;
    color: var(--teal);
    margin-bottom: 14px;
    display: block;
}

.feat-card:nth-child(even) i { color: var(--gold); }

.demo-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(0,201,177,0.08) 0%, transparent 60%), var(--navy-mid);
}

.demo-layout {
    align-items: start;
}

.demo-copy h2,
.closing-inner h2 {
    color: var(--white);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.demo-copy h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.demo-copy h2 span,
.closing-inner h2 .teal { color: var(--teal); }
.closing-inner h2 .gold { color: var(--gold); }

.demo-perks li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    align-items: flex-start;
}

.demo-form {
    padding: 44px 40px;
}

.demo-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-form-placeholder {
    padding: 28px;
    margin-top: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.16);
}

.demo-form-placeholder p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.7;
}

.demo-form-placeholder code {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.25);
    color: var(--white);
    overflow-x: auto;
}

.form-note {
    text-align: center;
    font-size: 12px;
    margin-top: 14px;
}

.demo-quote {
    margin-top: 40px;
    padding: 28px;
    background: var(--teal-glow);
    border: 1px solid var(--teal-border);
}

.demo-quote p {
    color: var(--white);
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.demo-quote span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.closing-section {
    background: var(--navy);
    padding: 120px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closing-section::before,
.closing-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.closing-section::before {
    width: 800px;
    height: 800px;
    border: 1px solid rgba(0,201,177,0.06);
}

.closing-section::after {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(245,166,35,0.06);
}

.closing-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.closing-inner h2 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.closing-inner p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
}

.nanotub-site-footer {
    background: #030810;
    padding: 28px 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nanotub-site-footer p,
.nanotub-site-footer .wp-block-paragraph {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.nanotub-site-footer a {
    color: var(--teal);
    text-decoration: none;
}

.page-shell,
.blog-shell {
    width: min(1100px, calc(100vw - 48px));
    margin: 140px auto 80px;
    padding: 48px;
    box-sizing: border-box;
}

.page-shell h1,
.blog-shell h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-shell .wp-block-post-content,
.blog-shell .wp-block-post-content {
    color: var(--body);
    line-height: 1.8;
}

.page-shell a,
.blog-shell a,
.blog-shell .wp-block-post-title a {
    color: var(--teal);
}

.blog-shell .wp-block-query {
    margin-top: 40px;
}

.blog-shell .wp-block-post-template {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 24px;
}

.blog-shell .wp-block-post-template > li {
    padding: 28px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.blog-shell .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.04); opacity: 0.6; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 1024px) {
    .nanotub-site-header,
    .section,
    .closing-section,
    .nanotub-site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .science-layout,
    .demo-layout,
    .ozone-split,
    .synergy-merge,
    .stats-ticker {
        grid-template-columns: 1fr;
    }

    .compare-strip,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plus-divider { display: none; }

    .nanotub-site-header .wp-block-navigation {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 0 24px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-sub,
    .section-desc,
    .closing-inner p {
        font-size: 17px;
    }

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

    .page-shell,
    .blog-shell {
        width: min(100vw - 24px, 1100px);
        padding: 28px 20px;
        margin-top: 110px;
    }

    .nanotub-site-footer .wp-block-group {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
