
:root {
    --bg-color: #030303;
    --card-bg: rgba(10, 10, 10, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.20);
    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --grid-dot: rgba(255, 255, 255, 0.04);
    --grid-line: rgba(255, 255, 255, 0.01);
    
    --header-border: rgba(255, 255, 255, 0.03);
    --header-bg: rgba(3, 3, 3, 0.85);
    --header-scrolled-bg: rgba(10, 10, 10, 0.75);
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    
    --transition-smooth: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                         opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                         border-color 0.3s ease,
                         background-color 0.3s ease;
    --transition-fast: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                        opacity 0.2s ease,
                        color 0.2s ease;
}

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

html, body {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-color);
    
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 32px 32px, 128px 128px, 128px 128px;
    background-position: center top;
}

main {
    position: relative;
    z-index: 4;
}


.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.02;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#bg-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}


.glass-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    animation: drift 25s infinite alternate ease-in-out;
}

.glass-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(140px);
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    animation: drift 35s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 8%) scale(1.08); }
}


.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--header-bg);
    border: 1px solid transparent;
    border-bottom: 1px solid var(--header-border);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
    will-change: width, max-width, top, padding, border-radius;
}

.header.scrolled {
    top: 16px;
    width: 90%;
    max-width: 480px;
    border-radius: 40px;
    padding: 10px 24px;
    background: var(--header-scrolled-bg);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 
                0 0 20px rgba(255, 255, 255, 0.04);
}

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

.logo-svg {
    height: 46px;
    width: 46px;
    display: block;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.bold-logo {
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.header.scrolled .logo-text {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn {
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}


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


.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 8% 40px 8%;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00ff66;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.text-gradient {
    color: var(--text-primary);
    -webkit-text-stroke: 1px var(--text-primary);
    background: linear-gradient(180deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.detailed-subtitle {
    font-family: var(--font-display) !important;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
    color: #a0a0a5;
    line-height: 1.7;
    max-width: 680px !important;
    margin-bottom: 48px !important;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    will-change: transform, opacity;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}


.hero-visual-blob {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    will-change: transform, opacity;
}

.liquid-blob-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.liquid-blob {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.02) 70%,
        transparent 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 60px rgba(255, 255, 255, 0.06),
        inset 0 0 120px rgba(255, 255, 255, 0.03),
        0 0 80px rgba(255, 255, 255, 0.04),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: blob-morph 8s ease-in-out infinite;
    will-change: border-radius, transform;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.liquid-blob::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 55%;
    height: 35%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(8px);
    animation: blob-morph 8s ease-in-out infinite reverse;
}

.liquid-blob::after {
    content: '';
    position: absolute;
    bottom: 12%;
    right: 10%;
    width: 30%;
    height: 20%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(6px);
    animation: blob-morph 6s ease-in-out infinite 2s;
}


.liquid-blob-sm {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.04) 60%,
        transparent 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.04),
        0 0 30px rgba(255, 255, 255, 0.02);
}

.liquid-blob-sm:nth-child(2) {
    width: 80px;
    height: 80px;
    top: -10px;
    right: 20px;
    animation: blob-orbit-1 12s ease-in-out infinite, blob-morph 6s ease-in-out infinite 1s;
}

.liquid-blob-sm:nth-child(3) {
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: -5px;
    animation: blob-orbit-2 10s ease-in-out infinite 2s, blob-morph 5s ease-in-out infinite 3s;
}

.liquid-blob-sm:nth-child(4) {
    width: 35px;
    height: 35px;
    top: 50%;
    right: -15px;
    animation: blob-orbit-3 14s ease-in-out infinite 1s, blob-morph 7s ease-in-out infinite;
}

@keyframes blob-morph {
    0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
    25%  { border-radius: 58% 42% 30% 70% / 55% 30% 70% 45%; transform: rotate(3deg) scale(1.03); }
    50%  { border-radius: 35% 65% 55% 45% / 60% 40% 60% 40%; transform: rotate(-2deg) scale(0.97); }
    75%  { border-radius: 65% 35% 45% 55% / 35% 65% 35% 65%; transform: rotate(4deg) scale(1.02); }
    100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
}

@keyframes blob-orbit-1 {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-15px, 20px); }
    50%      { transform: translate(10px, 35px); }
    75%      { transform: translate(20px, -10px); }
}

@keyframes blob-orbit-2 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(25px, -15px); }
    66%      { transform: translate(-10px, -25px); }
}

@keyframes blob-orbit-3 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-20px, 20px); }
}


.services-section, .philosophy-section, .contact-section {
    padding: 40px 0;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-tag-new {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.section-tag-new::before {
    content: '// ';
    color: rgba(255, 255, 255, 0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    border-radius: 24px;
    padding: 35px 25px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    will-change: transform, opacity;
}

.card-bg-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    will-change: transform;
}

.card-icon {
    width: 20px;
    height: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.service-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 
                0 0 30px rgba(255, 255, 255, 0.06);
}

.service-card:hover .card-icon-wrap {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}


.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.philosophy-p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
}

.philosophy-p strong {
    color: var(--text-primary);
    font-weight: 400;
}

.metrics-list {
    display: flex;
    gap: 40px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-val {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}


.glass-widget {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    will-change: transform;
}

.glass-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1;
}

.widget-header {
    position: relative;
    z-index: 2;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.widget-dot.red { background-color: #ff5f56; }
.widget-dot.yellow { background-color: #ffbd2e; }
.widget-dot.green { background-color: #27c93f; }

.widget-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.widget-body {
    position: relative;
    z-index: 2;
    padding: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.widget-body pre {
    white-space: pre-wrap;
    word-break: break-all;
}

.code-keyword { color: #8e8e93; font-weight: bold; }
.code-func { color: #f5f5f7; text-decoration: underline; }
.code-string { color: #c7c7cc; }
.code-comment { color: #48484a; font-style: italic; }
.code-decorator { color: #8e8e93; font-style: italic; }
.typing-cursor {
    color: var(--text-primary);
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}


.contact-box {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid var(--card-border);
    will-change: transform, opacity;
}

.contact-bg-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.project-form {
    margin-top: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 1;
}

.form-input:focus, .form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
    outline: none;
}

.form-textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 40px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
}


.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255,255,255,0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 380px;
}

.toast.toast-out {
    animation: toast-out 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast--success { border-color: rgba(0, 255, 102, 0.2); }
.toast--success .toast-icon { color: #00ff66; }

.toast--error { border-color: rgba(255, 80, 80, 0.2); }
.toast--error .toast-icon { color: #ff5050; }

.toast--warning { border-color: rgba(255, 189, 46, 0.2); }
.toast--warning .toast-icon { color: #ffbd2e; }

@keyframes toast-in {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to   { transform: translateY(10px) scale(0.95); opacity: 0; }
}


.scroll-reveal {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: scale(1);
}


@media (max-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-visual-blob {
        display: none;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-section {
        padding: 80px 4% 30px 4%;
    }
    
    .header {
        padding: 16px 4%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 14px 20px;
        background: var(--header-bg);
        border: 1px solid transparent;
        border-bottom: 1px solid var(--header-border);
        box-shadow: none;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    background-color 0.5s ease,
                    border-color 0.5s ease,
                    box-shadow 0.5s ease;
    }
    
    .header.scrolled {
        top: 14px;
        width: 92%;
        max-width: 320px;
        border-radius: 40px;
        padding: 8px 16px;
        background: var(--header-scrolled-bg);
        border-color: transparent;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 
                    0 0 20px rgba(255, 255, 255, 0.04);
    }
    
    .logo-svg {
        height: 24px;
        width: 24px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 5px 12px;
        background-color: var(--text-primary);
        color: var(--bg-color);
        border-radius: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }

    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-section {
        padding: 100px 16px 30px 16px;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .metrics-list {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .noise-overlay {
        display: none !important;
    }
    .card-bg-glass {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 10, 10, 0.95) !important;
    }
    .glass-glow-1, .glass-glow-2 {
        display: none !important;
    }
}
