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

:root {
    /* Pearl-inspired palette - tender, delicate, charming */
    --primary-color: #a8c5e6;
    --primary-deep: #7a9fc4;
    --secondary-color: #c4a8d6;
    --accent-warm: #d6b8c4;

    /* Layered depths */
    --text-primary: #3a4555;
    --text-secondary: #7a8595;
    --text-muted: #a8b2c0;

    /* Opalescent backgrounds */
    --bg-pearl: linear-gradient(135deg,
        rgba(255, 254, 255, 0.98) 0%,
        rgba(248, 250, 255, 0.98) 25%,
        rgba(255, 250, 253, 0.98) 50%,
        rgba(250, 252, 255, 0.98) 75%,
        rgba(255, 255, 254, 0.98) 100%);
    --bg-subtle: rgba(248, 250, 255, 0.6);
    --bg-depth: rgba(235, 240, 248, 0.4);

    /* Delicate borders */
    --border-pearl: rgba(230, 238, 248, 0.35);
    --border-glow: rgba(220, 230, 245, 0.25);

    /* Layered shadows - gentle depth */
    --shadow-whisper: 0 2px 8px rgba(240, 245, 250, 0.15),
                      inset 0 1px 2px rgba(255, 255, 255, 0.8),
                      inset 0 -1px 2px rgba(230, 238, 248, 0.2);
    --shadow-soft: 0 4px 16px rgba(235, 240, 250, 0.2),
                   inset 0 1px 3px rgba(255, 255, 255, 0.9),
                   inset 0 -1px 3px rgba(225, 235, 245, 0.25);
    --shadow-deep: 0 8px 32px rgba(230, 238, 248, 0.25),
                   0 2px 8px rgba(240, 245, 250, 0.2);
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-pearl);
    position: relative;
}

/* Subtle luminescence overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(235, 240, 248, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(245, 235, 242, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - floating pearl */
.header {
    position: sticky;
    top: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.25) 0%, transparent 70%),
        rgba(255, 254, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border-pearl);
    box-shadow: 0 2px 12px rgba(240, 245, 250, 0.15);
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: var(--shadow-whisper);
}

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

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

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

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.btn-primary):hover::after {
    transform: scaleX(1);
}

/* Buttons - plump and beautiful */
.btn-primary, .btn-secondary, .btn-large {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

.btn-primary {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(220, 230, 245, 0.4) 0%, transparent 70%),
        linear-gradient(135deg,
            rgba(168, 197, 230, 0.95) 0%,
            rgba(140, 180, 215, 0.95) 100%);
    color: white;
    border: 1.5px solid rgba(140, 180, 215, 0.3);
    box-shadow: var(--shadow-whisper);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(220, 230, 245, 0.5) 0%, transparent 70%),
        linear-gradient(135deg,
            rgba(180, 207, 240, 0.98) 0%,
            rgba(155, 190, 225, 0.98) 100%);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.3) 0%, transparent 70%),
        rgba(255, 254, 255, 0.95);
    color: var(--primary-deep);
    border: 1.5px solid var(--primary-color);
    box-shadow: var(--shadow-whisper);
}

.btn-secondary:hover {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(220, 230, 245, 0.4) 0%, transparent 70%),
        linear-gradient(135deg,
            rgba(235, 242, 252, 0.95) 0%,
            rgba(225, 235, 248, 0.95) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 16px;
}

/* Hero Section - dramatic and captivating */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 197, 230, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(196, 168, 214, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(214, 184, 196, 0.1) 0%, transparent 50%);
    animation: hero-gradient-shift 15s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(168, 197, 230, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(196, 168, 214, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    animation: hero-glow-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-gradient-shift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05) rotate(1deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(1.02) rotate(-1deg);
    }
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating particles */
.hero .container {
    position: relative;
}

.hero .container::before,
.hero .container::after {
    content: '✦';
    position: absolute;
    font-size: 12px;
    color: rgba(168, 197, 230, 0.4);
    animation: float-particle 6s ease-in-out infinite;
    pointer-events: none;
}

.hero .container::before {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero .container::after {
    content: '✧';
    top: 30%;
    right: 12%;
    font-size: 16px;
    color: rgba(196, 168, 214, 0.35);
    animation-delay: -3s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    animation: title-fade-in 1.2s ease-out;
}

@keyframes title-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--accent-warm) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: gradient-shimmer 5s ease infinite;
}

@keyframes gradient-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
    font-style: italic;
    animation: subtitle-fade-in 1.2s ease-out 0.3s both;
}

@keyframes subtitle-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    animation: cta-fade-in 1.2s ease-out 0.6s both;
}

@keyframes cta-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    animation: visual-fade-in 1.5s ease-out 0.8s both;
}

.hero-visual.dual-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.dual-showcase .visual-showcase {
    max-width: 900px;
    width: 100%;
}

.dual-showcase .visual-showcase:nth-child(2) {
    animation: visual-fade-in 1.5s ease-out 1.1s both;
}

@keyframes visual-fade-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.hero-note {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* Hero Visual - dramatic showcase */
.hero-visual {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Glow effect behind the card */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse at center, rgba(168, 197, 230, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
    animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Glowing wrapper for the card */
.visual-showcase {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.visual-showcase::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-warm),
        var(--primary-color)
    );
    background-size: 400% 400%;
    border-radius: 19px;
    animation: gradient-border 8s ease infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

.visual-showcase::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(168, 197, 230, 0.25) 0%, transparent 70%);
    animation: glow-breathe 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.visual-card {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.3) 0%, transparent 70%),
        rgba(20, 22, 28, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(168, 197, 230, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: 100%;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.visual-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-8px) scale(1.01);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.35),
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(168, 197, 230, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.visual-header {
    padding: 14px 18px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(240, 245, 250, 0.15) 0%, transparent 70%),
        rgba(248, 250, 255, 0.9);
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-glow);
}

.visual-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.visual-dot.red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5f56 100%);
}

.visual-dot.yellow {
    background: linear-gradient(135deg, #ffd93d 0%, #ffbd2e 100%);
}

.visual-dot.green {
    background: linear-gradient(135deg, #51cf66 0%, #27c93f 100%);
}

.visual-content {
    padding: 0;
    background: rgba(245, 248, 252, 0.5);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section - soft cards */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 0;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 36px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.25) 0%, transparent 70%),
        rgba(255, 254, 255, 0.95);
    border-radius: 18px;
    border: 1.5px solid var(--border-pearl);
    box-shadow: var(--shadow-whisper);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(168, 197, 230, 0.35);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.35) 0%, transparent 70%),
        rgba(255, 254, 255, 0.98);
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Screenshots Section - elegant gallery */
.screenshots {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(240, 245, 250, 0.05) 0%, transparent 70%),
        rgba(248, 250, 255, 0.3);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 48px;
}

.screenshot-item {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.3) 0%, transparent 70%),
        rgba(255, 254, 255, 0.98);
    border-radius: 20px;
    border: 1.5px solid var(--border-pearl);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transition: all 0.4s ease;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 48px rgba(230, 238, 248, 0.3),
        0 4px 16px rgba(240, 245, 250, 0.25);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-glow);
}

.screenshot-caption {
    padding: 28px;
}

.screenshot-caption h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.screenshot-caption p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* How It Works - flowing steps */
.how-it-works {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(240, 245, 250, 0.08) 0%, transparent 70%),
        rgba(248, 250, 255, 0.5);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(220, 230, 245, 0.4) 0%, transparent 70%),
        linear-gradient(135deg,
            rgba(168, 197, 230, 0.95) 0%,
            rgba(140, 180, 215, 0.95) 100%);
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(140, 180, 215, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-whisper);
}

.step h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.step-arrow {
    font-size: 32px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Use Cases - gentle cards */
.use-cases {
    padding: 100px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.use-case {
    padding: 36px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(235, 240, 248, 0.25) 0%, transparent 70%),
        rgba(255, 254, 255, 0.95);
    border-radius: 18px;
    border: 1.5px solid var(--border-pearl);
    box-shadow: var(--shadow-whisper);
    text-align: center;
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.use-case h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-deep);
    font-weight: 600;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section - inviting warmth */
.cta {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(240, 245, 252, 0.12) 0%, transparent 70%),
        rgba(248, 250, 255, 0.6);
    text-align: center;
}

.cta h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0;
}

.cta p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-style: italic;
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer - gentle closing */
.footer {
    background:
        linear-gradient(135deg,
            rgba(58, 69, 85, 0.98) 0%,
            rgba(48, 59, 75, 0.98) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .nav-links {
        gap: 16px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .steps {
        flex-direction: column;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .screenshot-item {
        max-width: 100%;
    }
}
