/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Gradient Mesh Background */
.gradient-mesh {
    background:
        radial-gradient(at 18% 18%, rgba(34, 34, 34, 0.08) 0px, transparent 42%),
        radial-gradient(at 82% 12%, rgba(84, 84, 84, 0.1) 0px, transparent 46%),
        radial-gradient(at 26% 82%, rgba(34, 34, 34, 0.05) 0px, transparent 40%),
        radial-gradient(at 88% 78%, rgba(123, 123, 123, 0.07) 0px, transparent 42%),
        linear-gradient(180deg, #ffffff 0%, var(--brand-cloud) 100%);
    background-attachment: fixed;
}

.transition-smooth {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-fast {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-gradient-accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Section Label */
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6b7280;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blur Circle Decoration */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.magnetic-btn:hover::before {
    opacity: 1;
}

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

/* Underline Animation */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.underline-hover:hover::after {
    width: 100%;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    outline: none;
}

.form-input:hover {
    border-color: #e5e7eb;
}

.form-input:focus {
    border-color: var(--brand-graphite);
    box-shadow: 0 0 0 4px var(--brand-ring);
}

.form-input::placeholder {
    color: #6b7280;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.captcha-shell {
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 14px;
    background: #fafafa;
}

.captcha-shell .h-captcha {
    width: 100%;
}

.form-status {
    min-height: 24px;
    margin-top: 12px;
    font-size: 14px;
    color: #4b5563;
}

.form-status[data-tone="error"] {
    color: #b91c1c;
}

/* Contact Card */
.contact-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #e5e7eb;
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
}

.faq-question:hover,
.faq-question:focus-visible {
    background: #fafafa;
}

.faq-question:focus-visible {
    outline: 2px solid var(--brand-graphite);
    outline-offset: -2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer.open {
    max-height: 200px;
    visibility: visible;
}

.faq-answer-content {
    padding: 0 28px 24px;
    color: #6b7280;
    line-height: 1.7;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Success Animation */
.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-check svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.5s 0.3s ease forwards;
}

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