/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 50%, rgba(88, 86, 214, 0.2), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(0, 122, 255, 0.2), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(175, 82, 222, 0.15), transparent 40%),
        #0A0A12;
    color: #E5E5EA;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ===== HEADER ===== */
.header {
    position: relative;
    z-index: 50;
    flex-shrink: 0;
}

/* ===== NOISE OVERLAY (Film Grain) ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== DRAW SVG LOGO ANIMATION ===== */
.draw-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.draw-svg .logo-fill {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: logoFill 0.5s ease 1.6s forwards;
}

@keyframes logoFill {
    to { opacity: 0.15; }
}

/* ===== PREMIUM LOGO BADGE ===== */
.premium-logo-badge {
    position: relative;
    overflow: hidden;
}

.premium-logo-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0s;
    pointer-events: none;
}

.premium-logo-badge:hover::after {
    left: 125%;
    transition: left 0.6s ease;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== MENU ===== */
.menu {
    display: flex;
    gap: 8px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}

.menu-item:active {
    transform: scale(0.97);
}

.menu-item.active {
    background: #007AFF;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.menu-item svg {
    width: 18px;
    height: 18px;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 20, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== MOBILE NAVIGATION ===== */
.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile-container {
    padding: 14px 16px 8px;
}

.nav-mobile-content {
    margin-bottom: 12px;
}

.logo-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-mobile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon-mobile svg {
    width: 20px;
    height: 20px;
    display: block;
}

.logo-text-mobile {
    display: flex;
    flex-direction: column;
}

.logo-title-mobile {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.3px;
}

.logo-subtitle-mobile {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

.menu-mobile {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    position: relative;
    scrollbar-width: none;
}

.menu-mobile::-webkit-scrollbar { display: none; }

.menu-pill-mobile {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #007AFF;
    border-radius: 10px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.menu-item-mobile {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.menu-item-mobile:active {
    transform: scale(0.96);
}

.menu-item-mobile.active {
    color: #fff;
    border-color: transparent;
}

.menu-item-mobile svg {
    width: 15px;
    height: 15px;
}

/* ===== MAIN CONTENT ===== */
.main {
    position: relative;
    z-index: 10;
    padding: 0 16px 16px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .main {
        padding: 0 24px 24px;
    }
}

.main-container {
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

/* ===== CONTENT CARD (Glassmorphism) ===== */
.content-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    width: 100%;
    transform: translateZ(0);
    will-change: transform;
}

/* ===== MOBILE CARD ===== */
@media (max-width: 768px) {
    .content-card {
        height: calc(100dvh - 135px);
        display: flex;
        flex-direction: column;
        touch-action: pan-y;
        transform: translateZ(0);
    }

    .content-container {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 20px 40px;
    }
}

.content-container {
    position: relative;
    z-index: 10;
    padding: 32px;
    opacity: 1;
}

/* ===== TYPOGRAPHY ===== */
.text-large {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.5px;
}

.text-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.3px;
}

.text-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.text-caption {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== SERVICE ICON ===== */
.service-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 24px;
}

/* ===== COMPONENTS ===== */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.bento-grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "success success"
        "time warranty";
}

.bento-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
    cursor: default;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.bento-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-cell-success { grid-area: success; }
.bento-cell-time { grid-area: time; }
.bento-cell-warranty { grid-area: warranty; }

/* ===== FLOAT ANIMATION ===== */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.icon-float {
    animation: iconFloat 3.5s ease-in-out infinite;
}

/* ===== PILL (Feature Tags) ===== */
.pill {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ===== TAG (Small Pill, NO backdrop-filter) ===== */
.tag {
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 20px;
}

/* ===== BUTTON ===== */
.button {
    background: #007AFF;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45);
}

.button:active {
    transform: scale(0.97);
}

/* ===== LOADING PROGRESS ===== */
@keyframes loadingProgress {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ===== FADE TRANSITIONS ===== */
.fade-exit {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.fade-enter-start {
    opacity: 0;
    transform: scale(1.02) translateY(-10px);
}

.fade-enter-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== STAGGER ANIMATIONS ===== */
.fade-in-scale {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-scale.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== STAGGER DELAYS ===== */
.stagger-item-1 { transition-delay: 0.04s; }
.stagger-item-2 { transition-delay: 0.08s; }
.stagger-item-3 { transition-delay: 0.12s; }
.stagger-item-4 { transition-delay: 0.16s; }
.stagger-item-5 { transition-delay: 0.20s; }
.stagger-item-6 { transition-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .text-large { font-size: 26px; }
    .text-title  { font-size: 22px; }
    .card { padding: 16px; }
    .bento-grid-3 {
        grid-template-columns: 1fr;
        grid-template-areas: "success" "time" "warranty";
    }
}

@media (max-width: 480px) {
    .text-large { font-size: 22px; }
    .text-title  { font-size: 18px; }
    .content-container { padding: 16px 16px 36px; }
}

@media (max-width: 380px) {
    .menu-item-mobile { padding: 6px 10px; font-size: 11px; }
    .menu-item-mobile svg { width: 13px; height: 13px; }
    .text-large { font-size: 20px; }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.max-w-3xl {
    max-width: 768px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.h-20 {
    height: 80px;
}

.w-20 {
    width: 80px;
}

.space-y-3 > * + * {
    margin-top: 12px;
}

.grid {
    display: grid;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.font-medium {
    font-weight: 500;
}

.font-mono {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.text-sm {
    font-size: 14px;
}

.rounded-lg {
    border-radius: 8px;
}

.bg-gray-900 {
    background-color: #111827;
}

.p-4 {
    padding: 16px;
}

.h-2 {
    height: 8px;
}

.h-3 {
    height: 12px;
}

.bg-gray-200 {
    background-color: #E5E7EB;
}

.rounded-full {
    border-radius: 9999px;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.bg-blue-500 {
    background-color: #3B82F6;
}

.bg-green-500 {
    background-color: #10B981;
}

.bg-purple-500 {
    background-color: #8B5CF6;
}

.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563EB;
}

.text-orange-600 {
    color: #EA580C;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-blue-400 {
    color: #60A5FA;
}

.text-yellow-300 {
    color: #FDE047;
}

.text-green-400 {
    color: #4ADE80;
}

.text-orange-400 {
    color: #FB923C;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 75%;
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.text-2xl {
    font-size: 24px;
    line-height: 1.2;
}

/* ===== RIPPLE BUTTON ===== */
.ripple-button {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}
