@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary: #000000;
    --accent: #3b82f6;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Phone Mockup Styling */
.phone-container {
    perspective: 2000px;
}

.phone-mockup {
    width: 310px;
    height: 515px;
    background: #000;
    border-radius: 36px;
    border: 8px solid #1a1a1a;
    position: relative;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

/* Simplified Notch */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.phone-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #fff;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(10px);
}

.phone-screenshot.active {
    opacity: 1;
    transform: translateY(0);
}

.section-trigger {
    min-height: 70vh;
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: all 0.5s ease-out;
    padding: 4rem 0;
}

.section-trigger.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .section-trigger > div {
        background: rgba(255, 255, 255, 0.9);
        padding: 2rem;
        border-radius: 2rem;
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
}

/* Subtle Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.stat-card {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

/* Toggle Switch */
.payment-toggle {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.toggle-option {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle-option.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-option[data-type="share"].active ~ .toggle-slider {
    transform: translateX(100%);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 2rem;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

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

/* Custom Select Styling */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
    padding-right: 3.5rem;
}
