/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Smart Mirror System / GreatFire logo palette */
    --primary: #312e81;
    --primary-mid: #4338ca;
    --primary-light: #6366f1;
    --primary-lighter: #818cf8;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --secondary: #0d9488;
    --danger: #dc2626;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 4px 10px -5px rgba(15, 23, 42, 0.04);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    height: 5.5rem;
    width: auto;
    display: block;
    object-fit: contain;
    /* Shift logo blues toward site indigo (#312e81) */
    filter: hue-rotate(32deg) saturate(1.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}
.nav-toggle:hover span { background: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
    background: var(--primary-mid);
}

/* Language switcher */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-switcher-wrap {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 36px;
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    border-radius: var(--radius);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-mid);
}

/* Hero Illustration */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-container {
    width: 100%;
    max-width: 600px;
}

.hero-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Hero Error Image */
.hero-error-image {
    width: 100%;
    max-width: 600px;
}

.error-page-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.error-browser-frame {
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-browser-bar {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.error-browser-dots {
    display: flex;
    gap: 0.5rem;
}

.error-browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.error-browser-dots .dot.red {
    background: #ef4444;
}

.error-browser-dots .dot.yellow {
    background: #f59e0b;
}

.error-browser-dots .dot.green {
    background: #10b981;
}

.error-content {
    padding: 3rem 2rem;
    text-align: center;
    background: white;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

.pulse-delay {
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.domain-dot {
    animation: float 2s ease-in-out infinite;
}

@keyframes draw {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease-in-out forwards;
}

.arrow {
    animation: float 1.5s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: 3rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Problem Section */
.problem {
    background: var(--bg-light);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Video Section */
.video-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.synthesia-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

/* How It Works */
.how-it-works {
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-icon {
    margin: 2rem 0 1rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-icon svg {
    width: 100px;
    height: 100px;
}

.step-screenshot {
    margin: 2rem 0 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Visual Process Section */
.visual-process {
    background: white;
}

.process-illustrations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.process-step-visual {
    position: relative;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step-visual:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.visual-step-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.visual-step-heading .visual-step-number {
    position: static;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.visual-step-number {
    position: absolute;
    top: -1.5rem;
    left: 3rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.process-step-visual h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text);
    padding-top: 1rem;
}

.visual-step-heading h3 {
    margin-bottom: 0;
    padding-top: 0;
}

.illustration-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.process-illustration {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

/* Screenshot Containers */
.screenshot-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.error-screenshot {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Googly Error Page */
.googly-error-page {
    max-width: 100%;
    margin: 0 auto;
}

.googly-error-page .error-browser-frame {
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.googly-error-page .error-browser-bar {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-url-bar {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: monospace;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    flex: 1;
    margin-left: 1rem;
    max-width: 300px;
}

.googly-error-content {
    padding: 3rem 2rem;
    text-align: center;
    background: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.googly-error-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.googly-error-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.googly-error-text {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.googly-error-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.googly-error-list li {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.googly-error-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6b7280;
    font-size: 1.5rem;
}

.googly-try-again-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.googly-try-again-btn:hover {
    background: #1d4ed8;
}

/* Small version for intercept visual */
.googly-error-page-small {
    max-width: 100%;
}

.googly-error-page-small .error-browser-frame {
    background: #f3f4f6;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 2px dashed #9ca3af;
}

.googly-error-page-small .error-browser-bar {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
}

.googly-error-content-small {
    padding: 1rem;
    text-align: center;
    background: white;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.googly-error-title-small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.googly-error-subtitle-small {
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Two Screens Container */
.two-screens-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.screen-item {
    position: relative;
}

.screen-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.screen-left .screen-screenshot {
    border: 2px solid #ef4444;
}

.screen-right .screen-screenshot {
    border: 2px solid #10b981;
}

.content-screenshot {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Screenshots Collage */
.screenshots-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.collage-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.visual-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.user-icon {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.connection-animated {
    animation: draw 2s ease-in-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.mirror-appearing {
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(350px, 150px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(350px, 150px) scale(1);
    }
}

.info-flow {
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.stars {
    animation: float 2s ease-in-out infinite;
}

@keyframes spinning {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spinning 2s linear infinite;
}

/* Examples Section */
.examples {
    background: var(--bg-light);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.example-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.example-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.example-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.example-story {
    margin-bottom: 1.5rem;
}

.example-story p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.example-story code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9em;
}

.impact-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Privacy Section */
.privacy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.privacy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Trust Section */
.trust {
    background: var(--bg-light);
}

.trust-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.trust-col p {
    color: var(--text-light);
    line-height: 1.9;
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Participate Section */
.participate {
    background: white;
}

.participate-content {
    max-width: 700px;
    margin: 0 auto;
}

.domain-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-spaced {
    margin-top: 2.5rem;
}

.form-header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.domain-form {
    margin-bottom: 2rem;
}

.contact-optional {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.contact-optional-summary {
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.contact-optional-summary::-webkit-details-marker {
    display: none;
}

.contact-optional-summary::before {
    content: '+ ';
    color: var(--primary);
}

.contact-optional[open] .contact-optional-summary::before {
    content: '− ';
}

.contact-optional-desc {
    margin: 0.75rem 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-email-wrap {
    margin-top: 0.5rem;
}

.contact-email-wrap input {
    max-width: 320px;
}

.redirect-options {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    background: white;
}

.redirect-options legend {
    font-weight: 700;
    color: var(--text);
    padding: 0 0.5rem;
}

.checkbox-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}

.checkbox-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: 0.6rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-item span {
    color: var(--text);
    font-weight: 600;
}

.redirect-note {
    margin-top: 0.9rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.donor-safety {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.donor-safety-centered {
    text-align: center;
}

.donor-safety-centered .donor-safety-list {
    display: inline-block;
    text-align: left;
}

.donor-safety-title {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.donor-safety-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.donor-safety-list li {
    margin-bottom: 0.6rem;
}

.donor-safety-list li:last-child {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

.submit-result {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.submit-result .result-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.submit-result p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.submit-result .result-value {
    color: var(--primary);
    font-family: ui-monospace, monospace;
}

.submit-result .result-nameservers {
    margin-bottom: 1.25rem;
}

.submit-result .result-test-btn,
.submit-result .result-back-btn {
    margin-top: 1rem;
    margin-right: 0.75rem;
}

.form-info {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.form-info p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setup-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.setup-number {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Alternative Options Section */
.alternative-options {
    background: white;
}

.alternative-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.alternative-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary);
}

.alternative-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.alternative-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.4;
}

.alternative-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.instructions-placeholder {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 2px dashed var(--border);
}

.instructions-placeholder p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* What else can you do? */
.what-else {
    background: var(--bg-light);
}

.what-else-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.what-else-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.1rem;
}

.what-else-list li {
    margin-bottom: 0.85rem;
}

.what-else-list li:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer ul {
    margin-top: 1rem;
    padding-left: 3rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.footer p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-muted {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .lang-switcher-wrap {
        padding: 0.75rem 1rem;
        min-height: 44px;
        align-items: center;
    }
    .lang-select {
        width: 100%;
        max-width: 200px;
        min-height: 44px;
    }

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

    .stats-grid,
    .process-steps,
    .examples-grid,
    .alternative-content {
        grid-template-columns: 1fr;
    }

    .screenshots-collage {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-screens-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-illustrations {
        gap: 3rem;
    }

    .process-step-visual {
        padding: 2rem 1.5rem;
    }

    .illustration-wrapper {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input {
        min-width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .domain-form-container {
        padding: 2rem 1.5rem;
    }

    .screenshots-collage {
        grid-template-columns: 1fr;
    }

    .error-text-large {
        font-size: 1.2rem;
    }

    .error-text-normal {
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* RTL: Arabic and Farsi */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .hero-cta,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .footer-bottom-links,
[dir="rtl"] .input-group,
[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-header {
    text-align: center;
}

[dir="rtl"] .donor-safety-centered .donor-safety-list {
    text-align: right;
}

[dir="rtl"] .donor-safety-list,
[dir="rtl"] .faq-answer ul {
    padding-right: 1.25rem;
    padding-left: 0;
}

[dir="rtl"] .faq-answer ul {
    padding-right: 3rem;
}

[dir="rtl"] .step-number {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .setup-step,
[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .trust-grid {
    direction: rtl;
}

/* ===== Dynamic Domain Result Styles ===== */

.results-container {
    margin-top: 2rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 5px solid;
}

.result-card.success {
    border-color: var(--secondary);
}

.result-card.action-needed {
    border-color: #f59e0b;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-icon {
    font-size: 2rem;
}

.result-card h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.result-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.instruction-step {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.instruction-step h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.dns-record-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: monospace;
    margin-top: 1rem;
}

.dns-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
}

.dns-row:last-child {
    border-bottom: none;
}

.dns-label {
    color: var(--text-light);
    font-weight: 600;
}

.dns-value {
    color: var(--primary-dark);
    font-weight: 600;
    text-align: right;
}

.registrar-guides {
    margin-top: 1.5rem;
}

.registrar-guides h5 {
    margin-bottom: 1rem;
    color: var(--text);
}

.accordion {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: none;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary);
}

.accordion-header.active:after {
    content: '-';
}

.accordion-content {
    display: none;
    padding: 1rem 1.5rem;
    background: white;
}

.accordion-content ol {
    padding-left: 1.5rem;
    color: var(--text-light);
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    margin-top: 1rem;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}
