/* 
 * GetDiskSpace Website - Main Stylesheet
 * Apple 2026 Glassmorphism Design
 */

:root {
    /* Brand Colors from BrandColors.swift */
    --color-calm-blue: #007AFF;
    --color-transparent-teal: #4CD984;
    --color-neutral-gray: #8E8E93;
    --color-danger-red: #FF453A;
    --color-symlink-indigo: #5E5CE6;

    /* Background Colors */
    --bg-dark: #000000;
    --bg-card: rgba(28, 28, 30, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-calm-blue);
}

p {
    font-size: 1.125rem;
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

a {
    color: var(--color-calm-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 2.25rem 0;
}

.guarantee-text {
    text-align: center;
    width: 100%;
    display: block;
}

/* Navigation - Main Header Only */
body>nav:first-of-type {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body>nav:first-of-type .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: height 0.3s ease;
}

@media (min-width: 2500px) {
    .nav-logo img {
        height: 80px;
    }
}


.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-cta {
    background: var(--color-calm-blue);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-cta:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 122, 255, 0.15), transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.pill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 100px;
    color: var(--color-calm-blue);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-calm-blue), #0056b3);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 122, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Value Proposition Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-calm-blue), var(--color-transparent-teal));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Feature Rows */
.feature-section {
    padding: 4rem 0;
}

.feature-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    margin-bottom: 8rem;
    text-align: left;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reversed {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    padding: 0;
}

.feature-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    /* Slightly smaller to prevent wrapping */
    line-height: 1.2;
}

.feature-visual {
    flex: 2;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 122, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 122, 255, 0.3), 0 0 100px rgba(0, 122, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    background: #0a0a0a;
}

/* Image styles moved to bottom for better cascading */

.feature-visual .placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.feature-list {
    list-style: none;
    margin: 1.5rem auto;
    display: inline-block;
    text-align: left;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    position: relative;
    color: #d4d4d8;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--color-transparent-teal);
    font-weight: bold;
    flex-shrink: 0;
}

/* Pricing List (Index Page) - Fix for missing Font Awesome */
.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #d4d4d8;
}

.features-list li::before {
    content: '✓';
    color: var(--color-transparent-teal);
    font-weight: bold;
}

.features-list li i {
    display: none !important;
}

/* Post Description Lists (Features Page) */
.post-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    display: inline-block;
    text-align: left;
}

.post-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #a1a1aa;
    /* Slightly lighter than header */
}

.post-description li::before {
    content: '✓';
    color: var(--color-transparent-teal);
    /* Checkmark color */
    font-weight: bold;
    flex-shrink: 0;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-item.span-3 {
    grid-column: span 3;
}

.bento-item.span-4 {
    grid-column: span 4;
}

.bento-item.span-6 {
    grid-column: span 6;
}

/* Pricing Grid Container */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    align-items: stretch;
}

/* Pricing Card - Premium Glassmorphism */
.pricing-card {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    /* Reduced from 24px */
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 45, 0.6);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Featured / Most Popular Card */
.pricing-card.featured {
    background: rgba(28, 28, 30, 0.6);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.15);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 25px 80px rgba(0, 122, 255, 0.25);
}

/* Badge for Most Popular */
.pricing-badge {
    text-align: center;
    background: linear-gradient(135deg, var(--color-calm-blue), #0056b3);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Pricing Typography */
.pricing-card h3 {
    font-size: 1.75rem;
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin: 1rem 0 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.price span {
    font-size: 1rem;
    color: var(--color-neutral-gray);
    font-weight: 500;
    display: block;
    margin-top: -0.5rem;
}

.pricing-card .features-list {
    margin: 2rem 0;
    flex-grow: 1;
    list-style: none;
    padding: 0;
}

.pricing-card .features-list li {
    padding: 0.6rem 0;
    color: var(--color-neutral-gray);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-card .features-list li:last-child {
    border-bottom: none;
}

.pricing-card .features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-calm-blue);
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer>.container {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-cta {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-neutral-gray);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-neutral-gray);
    font-size: 0.825rem;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom {
        text-align: center;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-item.span-3 {
        grid-column: span 2;
    }

    .bento-item.span-4 {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 36px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #0a0a0f;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1.5rem 0;
        display: block;
        width: 100%;
        color: white;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
        font-size: 1.75rem;
        padding: 0.25rem 0.5rem;
    }

    body>nav:first-of-type .container {
        position: relative;
    }

    .feature-row,
    .feature-row.reversed {
        flex-direction: column;
        gap: 2.5rem;
    }

    .feature-text {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .feature-visual {
        width: 100%;
        flex: unset;
        aspect-ratio: 16/9;
    }

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

    .bento-item.span-2,
    .bento-item.span-3,
    .bento-item.span-4,
    .bento-item.span-6 {
        grid-column: span 1;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

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

/* Feature Media Wrapper - 16:9 Aspect Ratio (Matches GetDiskSpace app window) */
.feature-media-wrapper {
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 122, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 122, 255, 0.3), 0 0 100px rgba(0, 122, 255, 0.15);
    isolation: isolate;
}

/* Ensure slide content behaves responsively */
.gallery-slide iframe,
.feature-visual iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Images - show the full screenshot without cropping */
.gallery-slide img,
.feature-visual img,
.feature-media-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-visual:hover img,
.feature-media-wrapper:hover img {
    transform: scale(1.02);
    /* Interactive hover */
}

@media (max-width: 768px) {
    .feature-media-wrapper {
        aspect-ratio: 16/9;
        /* Maintain ratio on mobile */
        border-radius: 16px;
    }
}