/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Colors - Dark Theme Base */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-elevated: #1a1a1a;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #737373;

    /* Accent Colors - Red & Green */
    --color-red: #ef4444;
    --color-red-hover: #dc2626;
    --color-red-glow: rgba(239, 68, 68, 0.3);
    --color-red-soft: rgba(239, 68, 68, 0.1);

    --color-green: #22c55e;
    --color-green-hover: #16a34a;
    --color-green-glow: rgba(34, 197, 94, 0.3);
    --color-green-soft: rgba(34, 197, 94, 0.1);

    /* Neutral Accents */
    --color-accent: #3b82f6;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.8, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    /* Z-index */
    --z-background: -1;
    --z-base: 0;
    --z-elevated: 10;
    --z-overlay: 100;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   Background Effects
   ============================================ */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, var(--color-text-primary) 2px, var(--color-text-primary) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, var(--color-text-primary) 2px, var(--color-text-primary) 3px);
    background-size: 60px 60px;
    animation: backgroundShift 60s linear infinite;
}

@keyframes backgroundShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    background:
        radial-gradient(circle at 20% 20%, var(--color-red-soft) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--color-green-soft) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: var(--z-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    text-align: center;
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    animation: fadeInUp 0.8s var(--transition-spring) backwards;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s var(--transition-spring) 0.1s backwards;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-green-glow);
    animation: pulse 2s ease-in-out infinite;
}

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

.domain-name {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s var(--transition-spring) 0.2s backwards;
}

.domain-text {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-extension {
    color: var(--color-green);
    text-shadow: 0 0 40px var(--color-green-glow);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.5;
    animation: fadeInUp 0.8s var(--transition-spring) 0.3s backwards;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    animation: fadeInUp 0.8s var(--transition-spring) 0.4s backwards;
}

.pill {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.pill:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.pill-icon {
    color: var(--color-green);
}

/* ============================================
   Counter Section
   ============================================ */
.counter-section {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    animation: fadeInUp 0.8s var(--transition-spring) 0.5s backwards;
}

.section-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-xl);
}

.counter-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-xl);
}

.counter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.counter-container.updating .counter-glow {
    opacity: 1;
    animation: glowPulse 0.6s ease-out;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.counter-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-secondary) 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.counter-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.counter-container.updating .counter-display::before {
    left: 100%;
}

.currency-symbol {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
}

.counter-value {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-spring);
}

.counter-container.updating .counter-value {
    animation: countBounce 0.6s var(--transition-spring);
}

@keyframes countBounce {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.95);
    }
}

.counter-increment-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-green);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 0 20px var(--color-green-glow);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    pointer-events: none;
}

.counter-increment-indicator svg {
    width: 14px;
    height: 14px;
}

.counter-container.updating .counter-increment-indicator {
    animation: incrementPopIn 0.8s var(--transition-spring);
}

@keyframes incrementPopIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    30%, 70% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
}

/* Progress Bar */
.progress-section {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--color-bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-green) 100%);
    border-radius: 999px;
    transition: width var(--transition-spring);
    box-shadow: 0 0 15px var(--color-green-glow);
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 999px;
    opacity: 0;
    transition: left var(--transition-spring);
}

.progress-bar-container.updating .progress-bar-glow {
    animation: progressGlow 0.8s ease-out;
}

@keyframes progressGlow {
    0% {
        opacity: 0;
        left: 0%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        left: 100%;
    }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.progress-label-goal {
    color: var(--color-green);
    font-weight: var(--font-weight-semibold);
}

.counter-description {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Value Proposition Section
   ============================================ */
.value-section {
    padding: var(--spacing-3xl) 0;
    animation: fadeInUp 0.8s var(--transition-spring) 0.6s backwards;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.value-card {
    padding: var(--spacing-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.value-card:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, var(--color-green), transparent);
}

.value-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.value-icon.red-accent {
    background: var(--color-red-soft);
    color: var(--color-red);
}

.value-icon.green-accent {
    background: var(--color-green-soft);
    color: var(--color-green);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.value-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    animation: fadeInUp 0.8s var(--transition-spring) 0.7s backwards;
}

.contact-container {
    max-width: 600px;
    margin: var(--spacing-2xl) auto 0;
}

.email-display-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-direction: column;
}

.email-display {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    text-align: center;
    transition: all var(--transition-base);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-display:not(:has(.email-placeholder)) {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px var(--color-green-soft);
}

.email-placeholder {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    animation: placeholderPulse 2s ease-in-out infinite;
}

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

.copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-green);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.copy-button:hover:not(:disabled) {
    background: var(--color-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-green-glow);
}

.copy-button:active:not(:disabled) {
    transform: translateY(0);
}

.copy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-icon {
    transition: transform var(--transition-base);
}

.copy-button:hover:not(:disabled) .copy-icon {
    transform: scale(1.1);
}

.copy-success {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-green);
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-base);
}

.copy-button.copied .copy-text,
.copy-button.copied .copy-icon {
    opacity: 0;
    transform: translateY(-100%);
}

.copy-button.copied .copy-success {
    opacity: 1;
    transform: translateY(0);
}

.contact-description {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-4xl);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

.footer-separator {
    opacity: 0.5;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    .container {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }

    .counter-section,
    .value-section,
    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    :root {
        --spacing-3xl: 2.5rem;
        --spacing-4xl: 3rem;
    }

    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-section {
        padding: var(--spacing-xl) 0;
    }

    .domain-name {
        margin-bottom: var(--spacing-md);
    }

    .feature-pills {
        gap: var(--spacing-xs);
    }

    .pill {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .counter-display {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .counter-increment-indicator {
        top: -8px;
        right: -8px;
        padding: 0.25rem var(--spacing-xs);
        font-size: 0.625rem;
    }

    .value-grid {
        gap: var(--spacing-md);
    }

    .value-card {
        padding: var(--spacing-md);
    }

    .email-display-wrapper {
        gap: var(--spacing-xs);
    }

    .email-display {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 48px;
    }

    .copy-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
        min-height: 48px;
    }

    .footer-text {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-separator {
        display: none;
    }
}

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

    .background-pattern {
        animation: none;
    }

    .gradient-overlay {
        animation: none;
    }
}

/* Focus visible styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.3);
        --color-border-hover: rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .background-pattern,
    .gradient-overlay,
    .copy-button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
