/* ========================================
   Skyniss Website - Design System
   ======================================== */

:root {
    /* Colors */
    --color-bg: #F8FBFE;
    --color-bg-alt: #EEF6FC;
    --color-surface: #FFFFFF;
    --color-text: #1A2B3C;
    --color-text-muted: #5A6B7C;
    --color-text-light: #8A9BAC;
    
    /* Brand Colors - Sky Blue */
    --color-primary: #0EA5E9;
    --color-primary-dark: #0284C7;
    --color-primary-light: #38BDF8;
    --color-accent: #0F172A;
    --color-accent-light: #1E3A5F;
    
    /* Secondary accent - sunny warm */
    --color-secondary: #F59E0B;
    --color-secondary-light: #FBBF24;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
    --gradient-subtle: linear-gradient(180deg, #F8FBFE 0%, #EEF6FC 100%);
    --gradient-sky: linear-gradient(180deg, #7DD3FC 0%, #0EA5E9 50%, #0284C7 100%);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ========================================
   Container
   ======================================== */

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 251, 254, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

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

.app-store-btn {
    padding: 0.75rem 1.5rem;
}

.app-store-btn .apple-icon {
    width: 28px;
    height: 28px;
}

.app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-store-btn .btn-small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.9;
}

.app-store-btn .btn-large {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-2xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary-light);
    top: -20%;
    right: -10%;
    opacity: 0.25;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #7DD3FC;
    bottom: 20%;
    left: -10%;
    opacity: 0.2;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -10%;
    right: 30%;
    opacity: 0.15;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

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

.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.phone-mockup {
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s forwards, phoneFloat 6s ease-in-out infinite 1.2s;
    opacity: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

.phone-frame {
    width: 280px;
    height: 584px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 10px;
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        inset 0 0 2px 1px rgba(0,0,0,0.3);
    position: relative;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

/* Aspect ratios match - image fills perfectly */
.phone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.phone-glow {
    position: absolute;
    inset: -30px;
    background: linear-gradient(135deg, #C084FC 0%, #F472B6 50%, #FB923C 100%);
    opacity: 0.2;
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.floating-elements {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.float-bubble {
    position: absolute;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: floatBubble 6s ease-in-out infinite;
}

.float-bubble svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.bubble-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: -2s;
}

.bubble-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: -4s;
}

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

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-title .highlight {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

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

.feature-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--space-3xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--color-secondary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-content .btn-primary {
    background: white;
    color: var(--color-text);
}

.cta-content .btn-primary:hover {
    background: var(--color-bg);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-text);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-brand .logo-icon {
    color: var(--color-primary-light);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
}

.footer-company {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-header {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.legal-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-3xl);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--color-text);
}

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

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--color-text-muted);
}

.legal-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.legal-content a {
    color: var(--color-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ========================================
   Support Page
   ======================================== */

.support-page {
    padding-top: 100px;
    min-height: 100vh;
}

.support-header {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) 0;
}

.support-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.support-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.support-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.support-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.support-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.support-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.support-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.support-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.support-card a.btn {
    width: 100%;
}

.support-tip {
    background: var(--color-bg-alt);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-tip-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.support-tip p {
    color: var(--color-text-muted);
}

.support-tip strong {
    color: var(--color-text);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--space-xl));
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: var(--space-2xl);
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
    
    .phone-notch {
        width: 80px;
        height: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg);
        padding: var(--space-md);
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: var(--space-sm);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .phone-frame {
        width: 220px;
        height: 458px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    .legal-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 200px;
        height: 416px;
    }
    
    .phone-notch {
        width: 70px;
        height: 20px;
    }
}
