/* SafeExit Website - Matching iOS App Design */
/* Design extracted from app screenshots: deep purple gradient, glassmorphism, circular icons */

:root {
    /* App Colors - Extracted from screenshots */
    --purple-deep: #5b2c91;
    --purple-dark: #3d1c5d;
    --purple-darker: #2a1342;
    --purple-light: #7a42c4;
    --purple-glow: rgba(123, 66, 196, 0.4);

    /* Accent colors from app icons */
    --accent-orange: #ff9500;
    --accent-pink: #ff2d55;
    --accent-blue: #5ac8fa;
    --accent-gold: #ffd60a;

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);

    /* Button background (semi-transparent purple from app) */
    --button-bg: rgba(139, 92, 246, 0.3);
    --button-bg-hover: rgba(139, 92, 246, 0.4);
    --button-primary-bg: rgba(255, 255, 255, 0.95);
    --button-primary-text: var(--purple-deep);

    /* Shadows */
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --glow-sm: 0 0 20px var(--purple-glow);
    --glow-md: 0 0 40px var(--purple-glow);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;

    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    /* Typography - SF Pro style */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-dark) 50%, var(--purple-darker) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
header {
    padding: var(--space-md) 0;
    backdrop-filter: blur(20px);
    background: rgba(58, 28, 93, 0.6);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--purple-light), var(--accent-pink));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

nav {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

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

/* Hero Section */
.hero {
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-text p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

/* Buttons - Matching app style */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-system);
    text-align: center;
}

.btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

.btn-secondary {
    background: var(--button-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--button-bg-hover);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* iPhone Mockup */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 42px;
    padding: 12px;
    box-shadow: var(--shadow-lg), var(--glow-md);
    position: relative;
    border: 3px solid #2a2a2a;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--purple-deep);
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* Feature Cards - Circular Icon Style from App */
.features {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-md);
}

/* Circular Icon Background - Matching app style */
.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2.5rem;
    position: relative;
    background: radial-gradient(circle, var(--purple-light) 0%, var(--purple-deep) 70%);
    box-shadow: var(--glow-sm);
}

/* Different icon colors matching app */
.feature-icon.icon-orange {
    background: radial-gradient(circle, rgba(255, 149, 0, 0.4) 0%, rgba(255, 149, 0, 0.1) 70%);
    color: var(--accent-orange);
}

.feature-icon.icon-pink {
    background: radial-gradient(circle, rgba(255, 45, 85, 0.4) 0%, rgba(255, 45, 85, 0.1) 70%);
    color: var(--accent-pink);
}

.feature-icon.icon-blue {
    background: radial-gradient(circle, rgba(90, 200, 250, 0.4) 0%, rgba(90, 200, 250, 0.1) 70%);
    color: var(--accent-blue);
}

.feature-icon.icon-gold {
    background: radial-gradient(circle, rgba(255, 214, 10, 0.4) 0%, rgba(255, 214, 10, 0.1) 70%);
    color: var(--accent-gold);
}

.feature-icon.icon-purple {
    background: radial-gradient(circle, rgba(122, 66, 196, 0.5) 0%, rgba(122, 66, 196, 0.1) 70%);
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: var(--space-2xl) 0;
    background: rgba(0, 0, 0, 0.2);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.screenshot-card {
    text-align: center;
}

.screenshot-frame {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.screenshot-frame:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.screenshot-caption {
    margin-top: var(--space-md);
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Premium Section - Matching app premium card */
.premium {
    padding: var(--space-2xl) 0;
}

.premium-card {
    max-width: 600px;
    margin: var(--space-xl) auto;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 45, 85, 0.1));
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg), var(--glow-md);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.premium-content {
    position: relative;
    z-index: 1;
}

.premium-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.4) 0%, rgba(255, 214, 10, 0.1) 70%);
    border-radius: 50%;
    box-shadow: var(--glow-sm);
}

.premium-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.premium-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.premium-pricing {
    font-size: 2rem;
    font-weight: 700;
    margin: var(--space-lg) 0;
    color: var(--accent-gold);
}

.premium-pricing small {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.premium-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

/* FAQ Section */
.faq {
    padding: var(--space-2xl) 0;
}

.faq-list {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: var(--glass-bg-hover);
}

.faq-question {
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-md) var(--space-md);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--purple-light);
}

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

/* Support Section */
.support {
    padding: var(--space-2xl) 0;
}

.contact-email-card {
    max-width: 500px;
    margin: var(--space-xl) auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    backdrop-filter: blur(20px);
}

.contact-email-link {
    font-size: 1.4rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(90, 200, 250, 0.1);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.contact-email-link:hover {
    background: rgba(90, 200, 250, 0.2);
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Content Pages (Privacy, Terms) */
.content-page {
    padding: var(--space-xl) 0;
    min-height: 70vh;
}

.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.content-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.content-card ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.content-card li {
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.7;
}

.content-card li::before {
    content: "•";
    position: absolute;
    left: var(--space-sm);
    color: var(--purple-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.content-card a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-card a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .btn-group {
        justify-content: flex-start;
    }

    .hero-text {
        order: 1;
    }

    .hero-mockup {
        order: 2;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-sm);
    }

    nav {
        width: 100%;
        justify-content: center;
    }

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

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

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

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .iphone-frame {
        max-width: 280px;
    }
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}

/* 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;
}