/* Apple-style Design System for Cine-Rader */

:root {
    --bg-color: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --surface-color: #ffffff;
    --nav-bg: rgba(251, 251, 253, 0.8);
    --font-main: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --max-width: 1200px;
    /* Increased for more dynamic layout */
    --radius-l: 28px;
    --radius-m: 18px;
    --transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Global image sizing */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.003em;
}

h1 {
    font-size: 56px;
    line-height: 1.07143;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
}

h3 {
    font-size: 28px;
    line-height: 1.14286;
}

p {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

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

.section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 1;
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f0f5 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 64px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-button {
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 26px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent-blue-hover);
    text-decoration: none;
    transform: scale(1.02);
}

.hero-icon {
    width: 150px;
    /* Reduced from 120px */
    height: 150px;
    border-radius: 22%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Softer shadow */
    margin-bottom: 24px;
}

.floating-card {
    position: absolute;
    border-radius: 16px;
    /* Slightly tighter radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Cleaner shadow */
    overflow: hidden;
    transition: transform 0.1s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    background: #fff;
}

.card-1 {
    width: 260px;
    z-index: 2;
    transform: rotate(-2deg) translateY(0);
    /* Reduced rotation */
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 240px;
    z-index: 1;
    right: 40px;
    top: 80px;
    transform: rotate(2deg) translateY(20px);
    /* Reduced rotation */
    opacity: 0.9;
    /* Less transparent */
    animation: float 8s ease-in-out infinite reverse;
}

.floating-card img {
    width: 100%;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Device Frame for Features */
.device-frame {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 8px solid #fff;
    /* White bezel */
    background: #000;
    height: 100%;
    width: 100%;
}

.device-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Screenshots Section */
.screenshots {
    background-color: #fbfbfd;
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 48px;
    color: var(--text-primary);
}

/* Screenshots Scroll */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Screenshots Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.screenshot-wrapper {
    background: var(--surface-color);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

.scroll-item {
    flex: 0 0 auto;
    width: 300px;
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.scroll-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.scroll-item img {
    width: 100%;
    display: block;
}

/* Features Grid (Bento Box) */
.features {
    background-color: #000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--radius-l);
    padding: 40px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: scale(1.02);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

/* Features List (Zig-Zag) */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.feature-text {
    flex: 1;
    max-width: 450px;
}

.feature-visual {
    flex: 1;
    height: 400px;
    background-color: #f0f0f5;
    border-radius: var(--radius-l);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Prevent feature visuals from growing too wide on large screens */
.features .feature-visual {
    max-width: 520px;
    margin: 0 auto;
}

/* Placeholder visuals for features */
.visual-private {
    background: linear-gradient(135deg, #e0f7fa 0%, #e1bee7 100%);
}

.visual-nologin {
    background: linear-gradient(135deg, #fff9c4 0%, #ffccbc 100%);
}

.visual-history {
    background: linear-gradient(135deg, #c8e6c9 0%, #b2dfdb 100%);
}

.visual-insights {
    background: linear-gradient(135deg, #bbdefb 0%, #c5cae9 100%);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* Privacy Page */
.privacy-content {
    padding-top: 100px;
    padding-bottom: 100px;
}

.privacy-content h1 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.privacy-text {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius-m);
    color: #d2d2d7;
}

.privacy-text h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.privacy-text h3 {
    font-size: 19px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.privacy-text p,
.privacy-text ul {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-text ul {
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 40px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f0f5 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 64px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.floating-card {
    position: absolute;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    transition: transform 0.1s ease-out;
    /* Smooth parallax */
}

.card-1 {
    width: 280px;
    z-index: 2;
    transform: rotate(-5deg) translateY(0);
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 260px;
    z-index: 1;
    right: 20px;
    top: 100px;
    transform: rotate(5deg) translateY(20px);
    opacity: 0.8;
    animation: float 8s ease-in-out infinite reverse;
}

.floating-card img {
    width: 100%;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Screenshots Scroll */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 auto;
    width: 300px;
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.scroll-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.scroll-item img {
    width: 100%;
    display: block;
}

/* Features List (Zig-Zag) */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.feature-text {
    flex: 1;
    max-width: 450px;
}

.feature-visual {
    flex: 1;
    height: 400px;
    background-color: #f0f0f5;
    border-radius: var(--radius-l);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Placeholder visuals for features */
.visual-private {
    background: linear-gradient(135deg, #e0f7fa 0%, #e1bee7 100%);
}

.visual-nologin {
    background: linear-gradient(135deg, #fff9c4 0%, #ffccbc 100%);
}

.visual-history {
    background: linear-gradient(135deg, #c8e6c9 0%, #b2dfdb 100%);
}

.visual-insights {
    background: linear-gradient(135deg, #bbdefb 0%, #c5cae9 100%);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-200 {
    transition-delay: 0.2s;
}

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

    h2 {
        font-size: 32px;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

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

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item.reverse {
        flex-direction: column;
    }

    .feature-text {
        max-width: 100%;
    }

    .feature-visual {
        width: 100%;
        height: 300px;
    }
}