/* ============================================================
   ORYZO CLONE - COMPLETE CSS
   Pixel-perfect clone of oryzo.ai
   ============================================================ */

:root {
    --bg: #000000;
    --bg-subtle: #050505;
    --bg-card: #0a0a0a;
    --text: #f0ece4;
    --text-muted: #777777;
    --text-dim: #3a3a3a;
    --accent: #c8b99a;
    --accent-warm: #d4c4a8;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Literata', Georgia, 'Times New Roman', serif;
    --mono: 'DM Mono', 'Courier New', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__logo {
    font-size: 1.6rem; font-weight: 900; letter-spacing: 6px;
    text-transform: uppercase; margin-bottom: 2rem; color: var(--text);
}
.preloader__bar {
    width: 200px; height: 2px; background: var(--text-dim);
    border-radius: 2px; overflow: hidden;
}
.preloader__progress {
    width: 0%; height: 100%; background: var(--accent);
    animation: preloaderFill 2s var(--ease) forwards;
}
@keyframes preloaderFill { to { width: 100%; } }

/* ==================== SIDE NAV ==================== */
.side-nav {
    position: fixed; right: 2.5rem; top: 50%; transform: translateY(-50%);
    z-index: 100;
}
.side-nav__links { display: flex; flex-direction: column; align-items: flex-end; gap: 2rem; }
.side-nav__link {
    font-size: 0.6rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 3px; color: var(--text-dim);
    writing-mode: vertical-rl; transform: rotate(180deg);
    transition: color 0.4s ease;
}
.side-nav__link:hover, .side-nav__link.active { color: var(--text); }

/* ==================== BURGER ==================== */
.burger-btn {
    position: fixed; top: 2rem; right: 2.5rem; z-index: 200;
    width: 30px; height: 18px; display: flex; flex-direction: column;
    justify-content: space-between; mix-blend-mode: difference;
}
.burger-btn span {
    display: block; width: 100%; height: 1.5px; background: var(--text);
    transition: transform 0.5s var(--ease), opacity 0.3s ease;
    transform-origin: center;
}
.burger-btn.open span:first-child { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed; inset: 0; background: var(--bg); z-index: 150;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__inner { text-align: center; }
.mobile-menu__link {
    display: block; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800;
    margin-bottom: 1rem; transition: color 0.3s ease;
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__email { margin-top: 3rem; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; }

/* ==================== 3D CANVAS ==================== */
#canvas-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none;
}
#canvas-container canvas { display: block; }

/* ==================== MAIN / SECTIONS ==================== */
.main-content { position: relative; z-index: 2; }
.section {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 6rem 8vw; position: relative;
}

/* ==================== HERO ==================== */
.section--hero {
    flex-direction: column; justify-content: center;
    text-align: center; min-height: 100vh;
}
.hero__top-left { position: absolute; top: 2rem; left: 3rem; }
.label-mono {
    font-family: var(--mono); font-size: 0.55rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-muted);
}
.hero__center { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.hero__subtitle {
    font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 400; color: var(--text-muted);
}
.hero__title {
    font-size: clamp(3.5rem, 11vw, 9rem); font-weight: 900;
    line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase;
}
.asterisk { font-size: 0.35em; vertical-align: super; color: var(--accent); }
.hero__bottom-left { position: absolute; bottom: 12vh; left: 3rem; }
.model-label {
    font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim);
    letter-spacing: 4px; text-transform: uppercase;
}
.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.scroll-indicator__line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==================== FEATURE SECTIONS ==================== */
.section--feature { padding: 0 8vw; }
.feature-content { max-width: 480px; }
.feature-content--right { margin-left: auto; text-align: right; }
.feature-content--left { margin-right: auto; text-align: left; }
.feature-mono {
    display: block; font-family: var(--mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 4px;
    color: var(--text-dim); margin-bottom: 1.5rem;
}
.feature-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1rem;
}
.feature-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }
.warning-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 1.5rem; padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 180, 50, 0.25); border-radius: 8px;
    background: rgba(255, 180, 50, 0.04);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted);
}
.warning-badge svg { color: #e8a020; width: 14px; height: 14px; }

/* ==================== FEATURES GRID ==================== */
.section--features-grid { padding: 10vh 8vw; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; max-width: 1100px; margin: 0 auto; width: 100%;
}
.feature-card {
    border: 1px solid var(--border); border-radius: 20px;
    padding: 3rem 2rem; background: rgba(255,255,255,0.015);
    text-align: center; transition: border-color 0.4s, background 0.4s;
}
.feature-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.feature-card__icon-wrap {
    margin-bottom: 1.5rem; color: var(--accent);
    display: flex; justify-content: center;
}
.feature-card__title { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }

/* ==================== SUSTAINABILITY ==================== */
.section--sustainability { flex-direction: column; }
.sustainability-inner { max-width: 1100px; width: 100%; text-align: center; }
.section-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 900;
    margin-bottom: 4rem; letter-spacing: -0.02em;
}
.section-title--lowercase { text-transform: lowercase; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { text-align: center; padding: 2rem 1rem; }
.stat__number {
    font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 900; line-height: 1;
    color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat__unit {
    font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted);
    margin-top: 0.5rem; text-transform: lowercase;
}
.stat__label {
    font-size: 0.7rem; color: var(--text-dim); margin-top: 0.8rem;
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* ==================== TESTIMONIALS ==================== */
.section--testimonials { flex-direction: column; padding: 10vh 6vw; }
.testimonials-inner { max-width: 1300px; width: 100%; }
.testimonials-scroll {
    display: flex; gap: 1.5rem; margin-top: 4rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 1rem;
    scrollbar-width: thin; scrollbar-color: var(--text-dim) transparent;
}
.testimonials-scroll::-webkit-scrollbar { height: 4px; }
.testimonials-scroll::-webkit-scrollbar-track { background: transparent; }
.testimonials-scroll::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 4px; }

.testimonial-card {
    flex: 0 0 320px; scroll-snap-align: start;
    border: 1px solid var(--border); border-radius: 20px;
    padding: 2rem 1.8rem; background: rgba(255,255,255,0.015);
    transition: border-color 0.4s, transform 0.5s var(--ease);
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.testimonial-card__avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    margin-bottom: 1.2rem; border: 1px solid var(--border);
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__quote {
    font-family: var(--serif); font-style: italic; font-size: 0.95rem;
    line-height: 1.7; color: var(--text); margin-bottom: 1.2rem;
}
.testimonial-card__author {
    font-family: var(--mono); font-size: 0.65rem; font-style: normal;
    color: var(--text-dim); letter-spacing: 2px; text-transform: none;
}

/* ==================== SOCIAL CONTENT / BADGES ==================== */
.section--social { padding: 8vh 6vw; }
.social-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.social-card {
    width: 190px; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; background: rgba(255,255,255,0.015);
    transition: border-color 0.4s, transform 0.5s var(--ease);
}
.social-card:hover { border-color: var(--accent); transform: translateY(-4px) scale(1.02); }
.social-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.social-card__label {
    padding: 0.8rem 1rem; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); text-align: center; line-height: 1.6;
}

/* ==================== PRODUCT LINEUP ==================== */
.section--products { flex-direction: column; padding: 10vh 6vw; background: var(--bg); }
.products-inner { max-width: 1200px; width: 100%; }
.products-eyebrow {
    text-align: center; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 3px; color: var(--text-muted); margin-bottom: 2rem;
}
.products-tabs {
    display: inline-flex; border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; margin: 0 auto 4rem; display: flex; justify-content: center;
}
.products-tabs { display: flex; justify-content: center; }
.products-tabs > div, .products-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.product-tab {
    padding: 0.8rem 1.8rem; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
    border-right: 1px solid var(--border);
}
.product-tab:last-child { border-right: none; }
.product-tab:hover { background: rgba(255,255,255,0.04); }
.product-tab.active { background: var(--text); color: var(--bg); }

.products-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.product-card {
    border: 1px solid var(--border); border-radius: 24px;
    padding: 2rem 1.8rem; background: rgba(255,255,255,0.015);
    position: relative; transition: border-color 0.4s, transform 0.5s var(--ease);
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.product-card--promax {
    border-color: rgba(200,185,154,0.2);
    background: linear-gradient(180deg, rgba(200,185,154,0.04) 0%, rgba(0,0,0,0) 60%);
}
.product-card--promax:hover { border-color: var(--accent); }
.product-card__new {
    position: absolute; top: 1.2rem; right: 1.2rem;
    font-size: 0.55rem; text-transform: uppercase; letter-spacing: 2px;
    padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px;
    color: var(--text-muted);
}
.product-card__new--gold { border-color: var(--accent); color: var(--accent); }
.product-card__name { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }

.product-card__visual {
    height: 180px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.5rem;
}
.coaster-circle {
    border-radius: 50%; position: relative;
    animation: coasterFloat 4s ease-in-out infinite;
}
.coaster-circle--sm {
    width: 100px; height: 100px;
    background: radial-gradient(circle at 35% 35%, #5a4e40, #2a2318);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 3px 10px rgba(200,180,150,0.08);
}
.coaster-circle--md {
    width: 115px; height: 115px;
    background: radial-gradient(circle at 35% 35%, #6a5e50, #3a3528);
    box-shadow: 0 18px 50px rgba(0,0,0,0.5), inset 0 3px 12px rgba(200,180,150,0.1);
}
.coaster-circle--lg {
    width: 130px; height: 130px;
    background: radial-gradient(circle at 35% 35%, #7a6e60, #4a4538);
    box-shadow: 0 20px 55px rgba(200,185,154,0.12), inset 0 3px 14px rgba(200,180,150,0.15);
    border: 1px solid rgba(200,185,154,0.15);
}
@keyframes coasterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.product-card__table { border-top: 1px solid var(--border); padding-top: 1rem; }
.product-card__table td {
    padding: 0.5rem 0; font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.025);
}
.product-card__table td:first-child { color: var(--text-muted); }
.product-card__table td:last-child {
    text-align: right; font-family: var(--mono); font-weight: 500; color: var(--text);
}

/* ==================== RESEARCH ==================== */
.section--research {
    flex-direction: column; padding: 10vh 8vw;
    background: var(--bg-subtle); border-top: 1px solid var(--border);
}
.research-inner { max-width: 750px; width: 100%; }
.research-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3.5rem;
}
.research-eyebrow {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted);
}
.research-links { display: flex; gap: 1.2rem; }
.research-link {
    font-family: var(--mono); font-size: 0.7rem; color: var(--accent);
    border-bottom: 1px solid transparent; padding-bottom: 1px;
    transition: border-color 0.3s;
}
.research-link:hover { border-color: var(--accent); }
.research-link--disabled { color: var(--text-dim); cursor: default; }
.research-link--disabled:hover { border-color: transparent; }

.paper-block {
    margin-bottom: 2.5rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.paper-block:last-child { border-bottom: none; padding-bottom: 0; }
.paper-block__heading {
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-dim); margin-bottom: 1rem;
}
.paper-block__text {
    font-family: var(--serif); font-size: 0.95rem; line-height: 1.85;
    color: var(--text-muted);
}

.bibtex {
    background: rgba(255,255,255,0.025); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem 2rem; overflow-x: auto;
}
.bibtex code {
    font-family: var(--mono); font-size: 0.75rem;
    color: var(--accent); line-height: 1.9; white-space: pre;
}

/* ==================== CTA ==================== */
.section--cta {
    flex-direction: column; text-align: center; min-height: 70vh; background: var(--bg);
}
.cta-inner { max-width: 650px; }
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
    line-height: 1.25; margin-bottom: 1.2rem;
}
.cta-subtitle {
    font-family: var(--serif); font-size: 1.1rem; font-style: italic;
    color: var(--text-muted); margin-bottom: 2.5rem;
}
.cta-btn {
    display: inline-block; padding: 0.9rem 2.5rem;
    border: 1px solid var(--text); border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
    transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.cta-btn:hover { background: var(--text); color: var(--bg); transform: scale(1.04); }

/* ==================== FOOTER ==================== */
.site-footer {
    border-top: 1px solid var(--border); padding: 3.5rem 8vw;
    background: var(--bg);
}
.footer-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 2.5rem; max-width: 1300px; margin: 0 auto;
}
.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; }
.footer-emails a {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    transition: color 0.3s;
}
.footer-emails a:hover { color: var(--accent); }
.footer-col--socials { flex-direction: row; gap: 2rem; align-items: center; }
.footer-col--socials a {
    font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; transition: color 0.3s;
}
.footer-col--socials a:hover { color: var(--text); }
.footer-col--legal { flex-direction: row; gap: 1.5rem; align-items: center; }
.footer-col--legal a {
    font-size: 0.65rem; color: var(--text-dim); transition: color 0.3s;
}
.footer-col--legal a:hover { color: var(--text-muted); }

/* ==================== ANIMATION STATE ==================== */
.anim-fade { opacity: 0; transform: translateY(40px); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .side-nav { display: none; }
    .features-grid, .stats-row, .products-cards { grid-template-columns: 1fr; }
    .research-header { flex-direction: column; }
    .social-card { width: 160px; }
}
@media (max-width: 768px) {
    .burger-btn { top: 1.2rem; right: 1.5rem; }
    .hero__top-left { top: 1.2rem; left: 1.5rem; }
    .hero__bottom-left { left: 1.5rem; }
    .section { padding: 5rem 5vw; }
    .feature-content--right { margin-left: 0; text-align: left; }
    .footer-row { flex-direction: column; }
    .footer-col--socials, .footer-col--legal { flex-wrap: wrap; gap: 1rem; }
    .products-tabs { flex-direction: column; border-radius: 10px; }
    .product-tab { border-right: none; border-bottom: 1px solid var(--border); }
    .product-tab:last-child { border-bottom: none; }
    .testimonial-card { flex: 0 0 280px; }
    .social-card { width: 140px; }
}
