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

:root {
    /* Persica Brand Colors */
    --primary-teal: #1fb9c8;
    --primary-blue: #0e5f77;
    --primary-orange: #ff7847;
    --dark-blue: #0a3d4f;
    
    /* UI Colors */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-dark: #1a1a1a;
    --text-light: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-orange) 0%, #ff9966 100%);
    
    /* Shadows */
    --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.5);
    --glow-text: 0 0 20px rgba(31, 185, 200, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-blue);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   Background & Texture
   ============================================ */
.bg-image {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('background.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    will-change: transform;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 61, 79, 0.7) 0%, rgba(5, 20, 30, 0.95) 100%);
    z-index: -2;
}

/* Noise Texture for Premium Feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   Sticky Navigation
   ============================================ */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    background: rgba(10, 61, 79, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(31, 185, 200, 0.3));
}

.nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 120, 71, 0.3);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Split Layout Grid (Desktop) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    flex-grow: 1;
    margin: 28px 0 40px;
}

/* ============================================
   Logo Section
   ============================================ */
.logo-container {
    padding: 12px 0 8px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(31, 185, 200, 0.3));
}

/* ============================================
   Hero Section (Left Column)
   ============================================ */
.hero {
    text-align: left;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.hero-content {
    max-width: 600px;
}

.title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

/* Glowing Text Effect */
.text-glow {
    background: linear-gradient(135deg, #fff 0%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(var(--glow-text));
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   Comparison Grid (Evolution Section)
   ============================================ */
.comparison-container {
    margin-top: 28px;
}

.evolution-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 132px;
    line-height: 1.6;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    margin-top: 4px;
}

.comparison-card {
    border-radius: 16px;
    padding: 20px 20px 20px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Legacy Card Panel */
.comparison-card.legacy {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.comparison-card.legacy h4 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Vertical Tab Badges */
.sub-badge {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-card.legacy .sub-badge {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Persica Card Styles */
.comparison-card.persica {
    background: rgba(14, 95, 119, 0.4);
    border: 1px solid rgba(31, 185, 200, 0.3);
    backdrop-filter: blur(10px);
}

.comparison-card.persica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 185, 200, 0.1) 0%, rgba(255, 120, 71, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.comparison-card.persica .card-header,
.comparison-card.persica .comparison-list {
    position: relative;
    z-index: 1;
}

.comparison-card.persica h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-card.persica .inline-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(31, 185, 200, 0.4));
    transform: translateY(-1px);
}

.comparison-card.persica .sub-badge {
    background: rgba(31, 185, 200, 0.15);
    color: var(--primary-teal);
    border: none;
    border-right: 1px solid rgba(31, 185, 200, 0.3);
    box-shadow: none;
}

/* List Styles */
.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.list-icon {
    font-size: 1.2rem;
    line-height: 1;
    min-width: 24px;
    margin-top: 2px;
}

.list-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.list-content span {
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    opacity: 0.8;
}

.comparison-card.legacy .list-content strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.comparison-card.persica .list-content strong {
    color: var(--white);
    font-weight: 700;
}

.comparison-card.persica .list-content span {
    color: rgba(255, 255, 255, 0.9);
}

/* 3D Tilt */
.comparison-card.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.comparison-card.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
    border-color: var(--primary-teal);
    box-shadow: 0 10px 30px rgba(31, 185, 200, 0.15);
}

/* ============================================
   Form Section (Right Column)
   ============================================ */
.form-section {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.form-container {
    position: relative;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 1;
    background: transparent;
    border: none;
    scroll-margin-top: 100px; /* Account for sticky nav */
}

.form-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 0deg,
        transparent 60%, 
        rgba(255, 120, 71, 0.2) 80%,
        var(--primary-orange) 100%
    );
    animation: border-chase 4s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.form-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0d3b4c;
    border-radius: 22px;
    z-index: -1;
}

@keyframes border-chase {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-container:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255, 120, 71, 0.2);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--white);
    font-weight: 700;
}

.form-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 1rem;
}

.form-cta-row {
    display: flex;
    justify-content: center;
    margin: 10px 0 22px;
}

.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.secondary-cta:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(31, 185, 200, 0.28);
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-label {
    position: absolute;
    top: -9px;
    left: 15px;
    background: rgba(14, 95, 119, 0.95);
    padding: 0 6px;
    font-size: 0.75rem;
    color: var(--primary-teal);
    border-radius: 4px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    transition: all 0.3s ease;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-input:focus {
    border-color: var(--primary-teal);
    background: rgba(0, 0, 0, 0.3);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 185, 200, 0.1);
}

.submit-btn {
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 120, 71, 0.3);
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.consent-text {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    text-align: center;
}

.consent-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-message {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
    margin-top: 10px;
}

.form-message.success {
    display: block;
    background: rgba(31, 185, 200, 0.2);
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal);
}

.form-message.error {
    display: block;
    background: rgba(255, 120, 71, 0.2);
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: -20px auto 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    animation: bounce 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.scroll-indicator:hover {
    color: var(--primary-teal);
}

.arrow-down {
    font-size: 1.2rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* ============================================
   Below-the-fold
   ============================================ */
.below-fold {
    margin: 30px 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.card-surface {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 22px;
    backdrop-filter: blur(8px);
}

.card-surface h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.card-surface p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.value-prop { grid-column: span 6; }
.use-cases { grid-column: span 6; }
.trust-strip { grid-column: span 12; }
.faq { grid-column: span 12; }

.bullets {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.bullets li {
    color: rgba(255, 255, 255, 0.78);
}

.bullets strong {
    color: rgba(255, 255, 255, 0.95);
}

.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.pill {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

.faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.faq-item summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--primary-teal);
}

.faq-item summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-left: 10px;
}

.faq-item summary:hover::after {
    border-color: var(--primary-teal);
}

.faq-item[open] summary::after {
    transform: rotate(225deg);
    border-color: var(--primary-teal);
}

.faq-item p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    animation: fadeIn 0.3s ease-out;
}

.faq-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

.footer-links .dot {
    margin: 0 10px;
    opacity: 0.3;
}

.social-links {
    display: flex;
    gap: 16px;
    margin: 4px 0;
}

.social-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: var(--primary-teal);
    background: rgba(31, 185, 200, 0.1);
    border-color: rgba(31, 185, 200, 0.2);
    transform: translateY(-2px);
}

.copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .main-grid { gap: 40px; }
    .title { font-size: 3.5rem; }
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        margin-top: 18px;
    }
    
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
    .form-section { margin: 0 auto; }
    .logo-container { text-align: center; }
    .logo { max-width: 300px; }

    .content-grid { grid-template-columns: 1fr; }
    .value-prop, .use-cases, .trust-strip, .faq { grid-column: auto; }
}

@media (max-width: 480px) {
    .container { padding: 20px; }
    .title { font-size: 2.5rem; }
    .form-container { padding: 30px 20px; }
    .sticky-nav { padding: 12px 20px; }
    .nav-logo { height: 24px; }
    .nav-btn { padding: 8px 16px; font-size: 0.85rem; }
}

/* ============================================
   Loading State
   ============================================ */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
