:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.64);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(30, 30, 30, 0.88);
    --card-hover-border: rgba(0, 243, 255, 0.5);
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --text-main: #ffffff;
    --text-soft: #d5d5d5;
    --text-muted: #9a9a9a;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --container-width: 1080px;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding: 24px 20px 48px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

#tech-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 0%, #0b101a 0%, #050510 45%, #000000 100%);
}

/* ===== Announcement Bar ===== */
#announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.12), rgba(188, 19, 254, 0.08), rgba(0, 243, 255, 0.12));
    color: var(--accent-cyan);
    font-size: 0.85rem;
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    white-space: nowrap;
    overflow: hidden;
}

#announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

/* ===== Wrapper & Entry Animation ===== */
.wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 72vh;
    display: grid;
    align-items: center;
    padding-top: 72px;
    margin-bottom: 40px;
}

.hero-panel,
.section-panel {
    background: rgba(10, 14, 22, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.24);
}

.hero-panel {
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan));
    border-radius: 1px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 32px;
    align-items: center;
}

.logo-container {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.35));
    animation: float 4s ease-in-out infinite;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
    line-height: 1.08;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 30%, var(--accent-cyan) 70%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.04rem, 2.1vw, 1.3rem);
    color: var(--text-soft);
    margin-bottom: 12px;
    max-width: 760px;
    line-height: 1.65;
}

.hero-copy {
    color: var(--text-muted);
    max-width: 760px;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #49a8ff);
    color: #031118;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 243, 255, 0.12);
}

.btn-primary:hover {
    box-shadow: 0 16px 40px rgba(0, 243, 255, 0.3);
}

.hero-aside {
    display: grid;
    gap: 14px;
}

.metric-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-label {
    color: var(--accent-cyan);
    font-size: 0.78rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metric-value {
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.quick-points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.quick-points li {
    color: var(--text-soft);
    padding-left: 20px;
    position: relative;
    font-size: 0.94rem;
    line-height: 1.5;
}

.quick-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* ===== Section Common ===== */
.section {
    margin-bottom: 32px;
    animation: fadeInUp 0.7s ease backwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }

.section-panel {
    padding: 36px 32px;
}

h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.3), transparent);
    border-radius: 1px;
    min-width: 40px;
    margin-top: 4px;
}

.section-intro {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 840px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Grid Layouts ===== */
.grid-menu,
.feature-grid,
.faq-grid {
    display: grid;
    gap: 18px;
}

.grid-menu {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ===== Cards — Shared Base ===== */
.card,
.feature-card,
.faq-card,
.summary-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
}

/* ===== Product Cards (Clickable Navigation) ===== */
.card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    padding: 22px 20px;
    cursor: pointer;
}

/* Card entrance stagger */
.grid-menu .card {
    animation: cardEnter 0.6s ease backwards;
}
.grid-menu .card:nth-child(1) { animation-delay: 0.1s; }
.grid-menu .card:nth-child(2) { animation-delay: 0.15s; }
.grid-menu .card:nth-child(3) { animation-delay: 0.2s; }
.grid-menu .card:nth-child(4) { animation-delay: 0.25s; }
.grid-menu .card:nth-child(5) { animation-delay: 0.3s; }
.grid-menu .card:nth-child(6) { animation-delay: 0.35s; }
.grid-menu .card:nth-child(7) { animation-delay: 0.4s; }

/* Left accent bar */
.card::before,
.feature-card::before,
.faq-card::before,
.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-smooth);
    border-radius: 0 2px 2px 0;
}

/* Top glow line on hover */
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card:hover,
.feature-card:hover,
.faq-card:hover,
.summary-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 32px -8px rgba(0, 243, 255, 0.18), 0 0 0 1px rgba(0, 243, 255, 0.08) inset;
}

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

.card:hover::after {
    opacity: 1;
}

/* Card Icon */
.card-icon {
    width: 46px;
    height: 46px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.12);
    border-radius: 12px;
    color: var(--accent-cyan);
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent-cyan), #49a8ff);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Arrow — always visible for clickability */
.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.08);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
    transform: translateX(0);
    transition: all var(--transition-smooth);
    flex-shrink: 0;
    margin-left: 8px;
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
    background: rgba(0, 243, 255, 0.18);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

/* ===== Feature / FAQ / Summary Cards ===== */
.feature-card,
.faq-card,
.summary-card {
    padding: 22px;
}

.feature-title,
.faq-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-desc,
.faq-desc,
.summary-card p,
.content-text,
.contact-list {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.summary-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Feature card icons */
.feature-card {
    padding-left: 56px;
}

.feature-card::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.15);
    transition: all var(--transition-smooth);
}

.feature-card:hover::after {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.15);
}

.feature-card:nth-child(1)::after { content: "API"; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }
.feature-card:nth-child(2)::after { content: "AI"; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }
.feature-card:nth-child(3)::after { content: "PDF"; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }
.feature-card:nth-child(4)::after { content: "DEV"; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }

/* ===== Content Grid (About section) ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 22px;
}

.content-text p + p {
    margin-top: 14px;
}

.summary-grid {
    display: grid;
    gap: 14px;
}

/* ===== Contact ===== */
.contact-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.contact-list a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-list a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    margin-top: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.social-item img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
    transition: all var(--transition-smooth);
}

.social-item:hover {
    background: linear-gradient(135deg, var(--accent-cyan), #49a8ff);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.25);
}

.social-item:hover img {
    filter: brightness(0);
    opacity: 1;
}

/* ===== Noscript Fallback ===== */
noscript div {
    padding: 16px;
    background: rgba(254, 243, 199, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-top: 16px;
    color: #fbbf24;
    font-size: 0.9rem;
    line-height: 1.7;
}

noscript div a {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Animations ===== */
@keyframes marquee {
    100% { transform: translateX(-100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

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

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 243, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 32px 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 66px;
    }

    .hero-aside {
        order: 1;
    }
}

@media (max-width: 640px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-panel,
    .section-panel {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .grid-menu,
    .feature-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 60px;
        margin-bottom: 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card {
        padding: 18px 16px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .card-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .section-panel {
        padding: 22px 16px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .grid-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}
