/* ===========================
   VARIABLES & RESET
   =========================== */

:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --blue-darker: #1e40af;
    --orange: #FF6A00;
    
    --text-primary: #E5E7EB;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    
    --border: #30363D;
    --border-light: #22272E;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    font-size: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--blue-light);
}

/* ===========================
   CONTAINER & SPACING
   =========================== */

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

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.92);
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.navbar-logo:hover {
    color: var(--blue);
}

.nav-logo {
    height: auto;
    width: 280px;
    display: block;
}
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding: 60px 20px 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circuit-traces {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    animation: circuitDrift 20s ease-in-out infinite;
}

@keyframes circuitDrift {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-20px); opacity: 0.4; }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: orbFloat 15s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    top: -100px;
    left: 5%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    bottom: -50px;
    right: 5%;
    animation-delay: -7.5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

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

.hero-logo-wrapper {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInDown 1s ease-out 0.1s both;
}
.hero-logo-image {
    width: 360px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(37,99,235,.25));
    animation: fadeInDown 1s ease-out .1s both;
}

.logo-pulse-line {
    position: relative;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(37, 99, 235, 0.4) 20%,
        rgba(37, 99, 235, 0.8) 50%,
        rgba(37, 99, 235, 0.4) 80%,
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.pulse-glow {
    position: absolute;
    top: -3px;
    left: 0;
    width: 30px;
    height: 9px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 1) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: pulseTravel 3s ease-in-out infinite;
}

@keyframes pulseTravel {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.hero-wordmark {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-tagline {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tagline h2 {
    line-height: 1.35;
    color: var(--text-primary);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    letter-spacing: -0.005em;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
    border: 1.5px solid rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue-light);
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
}

/* ===========================
   SECTIONS
   =========================== */

section {
    padding: 120px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ===========================
   PRODUCTS SECTION
   =========================== */

.products {
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.8) 0%, rgba(33, 38, 45, 0.4) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, rgba(22, 27, 34, 1) 0%, rgba(33, 38, 45, 0.6) 100%);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    transform: translateY(-6px);
}

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

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    gap: 1.5rem;
}

.product-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-icon.placeholder-icon {
    color: var(--text-tertiary);
}

.product-card-content {
    padding: 0 2rem;
    flex: 1;
}

.product-card h3 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
}

.product-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-features {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
}

.product-status {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    gap: 1rem;
}

.product-badge {
    display: inline-block;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.3);
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
}

.btn-product-coming {
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all var(--transition-base);
}

.product-featured {
    grid-column: auto;
}

.product-featured .product-icon {
    width: 80px;
    height: 80px;
}

.product-featured .product-card-top {
    padding: 2.5rem 2.5rem 1.5rem;
}

.product-featured .product-card-content {
    padding: 0 2.5rem;
}

.product-featured .product-card-footer {
    padding: 1.5rem 2.5rem;
}

.product-placeholder {
    opacity: 0.65;
}

.product-placeholder .product-card-content {
    padding: 1rem 2rem;
}

.product-placeholder .product-card-top {
    padding: 2rem 2rem 0.5rem;
}

/* ===========================
   APPROACH SECTION
   =========================== */

.approach {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.approach-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.6) 0%, rgba(33, 38, 45, 0.3) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.approach-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(33, 38, 45, 0.5) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

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

.approach-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.75rem;
    color: var(--blue);
    transition: all var(--transition-base);
}

.approach-card:hover .approach-icon {
    color: var(--orange);
    transform: scale(1.15) rotate(5deg);
}

.approach-icon svg {
    width: 100%;
    height: 100%;
}

.approach-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.approach-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    animation: fadeInUp 0.8s ease-out;
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.email-link {
    color: var(--blue);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.email-link:hover {
    color: var(--blue-light);
}

.contact-form {
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(33, 38, 45, 0.5);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.03);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    margin-left: 1.5rem;
}

.footer-link:first-child {
    margin-left: 0;
}

.footer-link:hover {
    color: var(--blue);
}

/* ===========================
   ANIMATIONS
   =========================== */

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

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

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        list-style: none;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(37, 99, 235, 0.05);
    }

    .nav-toggle {
        display: flex;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        margin-top: 70px;
        padding: 40px 20px;
        min-height: auto;
    }

    .hero-logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .hero-logo {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .footer-link {
        margin-left: 1rem;
        margin-right: 1rem;
    }

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

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

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-tagline h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .navbar-container {
        height: 60px;
    }

    .hero {
        margin-top: 60px;
    }

    section {
        padding: 40px 16px;
    }

    .about-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --text-secondary: #b4bcc4;
        --border: #404854;
    }
}
