/* ============================================
   VerifEye — GitHub Pages Site Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    --primary: #2ABFBF;
    --primary-dark: #1A9E9E;
    --primary-light: #7DD8C8;
    --accent: #F5C542;
    --gradient-hero: linear-gradient(180deg, #2ABFBF 0%, #58D5A8 40%, #A8E6CF 70%, #E0F7F1 100%);
    --gradient-cta: linear-gradient(135deg, #1A9E9E 0%, #2ABFBF 50%, #58D5A8 100%);
    --gradient-page: linear-gradient(180deg, #2ABFBF 0%, #A8E6CF 60%, #E0F7F1 100%);
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --card-bg: #ffffff;
    --border: #d2d2d7;
    --max-width: 1200px;
    --content-width: 800px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: saturate(180%) blur(20px);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(42, 191, 191, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* --- Typography --- */
h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 17px;
    line-height: 1.65;
}

.text-secondary {
    color: var(--text-secondary);
}

/* --- Scroll Reveal Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.header.scrolled {
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo:hover {
    opacity: 1;
}

.header__logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.header__nav a:not(.header__cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s;
}

.header__nav a:not(.header__cta):hover::after {
    width: 100%;
}

.header__nav a:hover {
    color: var(--primary-dark);
    opacity: 1;
}

.header__cta {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.header__cta:hover {
    background: var(--primary-dark);
    opacity: 1 !important;
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(42, 191, 191, 0.3);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
    background: var(--gradient-hero);
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 980px;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 720px;
    margin: 0 auto 20px;
    position: relative;
}

.hero__subtitle {
    font-size: 22px;
    color: rgba(0, 0, 0, 0.6);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero__image-wrapper {
    position: relative;
    display: inline-block;
}

.hero__image {
    max-width: 340px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.hero__image-glow {
    position: absolute;
    top: 10%;
    left: -20%;
    right: -20%;
    bottom: -10%;
    background: radial-gradient(ellipse, rgba(42, 191, 191, 0.25) 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(42, 191, 191, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 191, 191, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    border: 2px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.btn-appstore {
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 13px;
}

.btn-appstore:hover {
    transform: scale(1.05);
    opacity: 1;
}

.btn-appstore img {
    height: 52px;
}

/* --- Features --- */
.features {
    background: var(--bg);
}

.features__heading {
    text-align: center;
    margin-bottom: 64px;
}

.features__heading p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 19px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: rgba(42, 191, 191, 0.3);
}

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

.feature-card__icon {
    font-size: 44px;
    margin-bottom: 18px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

/* --- Use Cases --- */
.use-cases {
    background: var(--bg-secondary);
    position: relative;
}

.use-cases__heading {
    text-align: center;
    margin-bottom: 16px;
}

.use-cases__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 19px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 820px;
    margin: 0 auto;
}

.use-case-tag {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 980px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: default;
}

.use-case-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(42, 191, 191, 0.15);
    transform: translateY(-2px);
    background: #f0fafa;
}

.use-case-tag__icon {
    font-size: 20px;
}

/* --- Screenshot Showcase --- */
.showcase {
    background: var(--bg);
}

.showcase__heading {
    text-align: center;
    margin-bottom: 64px;
}

.showcase__heading p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 19px;
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.showcase__item {
    text-align: center;
    transition: transform 0.4s ease;
}

.showcase__item:hover {
    transform: translateY(-8px);
}

.showcase__item img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.4s;
}

.showcase__item:hover img {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.showcase__item p {
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.showcase__item .showcase__caption {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-cta);
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-size: 19px;
    position: relative;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    background: var(--bg);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer__copy {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--primary-dark);
    opacity: 1;
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: var(--gradient-page);
    text-align: center;
    padding: 80px 24px 64px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 60% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 44px;
    margin-bottom: 12px;
    position: relative;
}

.page-header p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 19px;
    position: relative;
}

/* --- Content Card (support, contact, privacy) --- */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s;
}

.content-card:hover {
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.content-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

.content-card p + p {
    margin-top: 12px;
}

/* Contact highlight card */
.contact-card {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #f0fafa 0%, #f5fdfd 100%);
}

.contact-card .btn {
    margin-top: 20px;
}

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

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item h3 {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--text);
}

.faq-item p {
    font-size: 15px;
}

/* --- Privacy Summary --- */
.privacy-summary {
    background: linear-gradient(135deg, #f0fafa 0%, #e8f8f0 100%);
    border: 1px solid rgba(42, 191, 191, 0.25);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 40px;
}

.privacy-summary ul {
    list-style: none;
    padding: 0;
}

.privacy-summary li {
    padding: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.privacy-summary li::before {
    content: "\2713";
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(42, 191, 191, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Privacy Policy Sections --- */
.policy-section {
    margin-bottom: 32px;
}

.policy-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
    padding-top: 16px;
}

.policy-section ul {
    padding-left: 20px;
    margin-top: 8px;
}

.policy-section li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    .hero {
        padding: 60px 24px 60px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__image {
        max-width: 260px;
    }

    .section {
        padding: 64px 0;
    }

    /* Mobile nav */
    .header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--glass-bg);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }

    .header__nav.open {
        display: flex;
    }

    .header__hamburger {
        display: flex;
    }

    .header__hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header__nav a:not(.header__cta)::after {
        display: none;
    }

    /* Features */
    .features__grid {
        grid-template-columns: 1fr;
    }

    /* Showcase */
    .showcase__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .showcase__item img {
        max-width: 240px;
    }

    .page-header {
        padding: 60px 24px 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Content cards */
    .content-card {
        padding: 24px;
    }

    /* Disable stagger on mobile for snappier feel */
    .stagger-children .fade-in:nth-child(n) {
        transition-delay: 0s;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 30px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .use-cases__grid {
        gap: 8px;
    }

    .use-case-tag {
        padding: 10px 18px;
        font-size: 14px;
    }

    .privacy-summary {
        padding: 24px;
    }
}
