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

:root {
    --primary: #0071e3;
    --secondary: #86868b;
    --accent: #0071e3;
    --bg-deep: #ffffff;
    --bg-surface: #fbfbfd;
    --bg-card: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.06);
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-hover: rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Effects - Removed dark glows for Apple style */

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 3rem;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 5% 120px;
    position: relative;
    background: #ffffff;
}

.hero-badge {
    background: rgba(0, 113, 227, 0.08);
    border: none;
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(5rem, 12vw, 7.5rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

/* 3D Interactive Title */
.hero-title-3d {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    perspective: 1000px;
}

.hero-title-3d::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 113, 227, 0.15) 0%,
        rgba(0, 113, 227, 0.05) 50%,
        transparent 100%
    );
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(30px);
    transform: translateZ(-100px);
    pointer-events: none;
}

.hero-title-3d:hover::before {
    opacity: 0.8;
}

.hero-title-3d span {
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-main);
}

.hero p {
    font-size: 1.4375rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: 0.011em;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 980px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
    background: #0077ed;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
    transform: scale(1.02);
}

.btn-apple {
    background: #000000;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-apple:hover {
    background: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-google {
    background: #4285F4;
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google:hover {
    background: #3367D6;
    box-shadow: 0 4px 12px rgba(51, 103, 214, 0.3);
    transform: translateY(-1px);
}

/* Features Section */
.section {
    padding: 140px 5%;
    background: var(--bg-deep);
}

.section:nth-child(even) {
    background: #fbfbfd;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    grid-template-columns: 1fr;
    /* max-width: 600px; */
}

.card {
    background: var(--bg-card);
    border: none;
    padding: 4rem;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.card-icon.logo-container {
    width: auto;
    height: 64px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.card-icon.logo-container .feature-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card-icon.logo-container .feature-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-icon img.feature-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-icon img.feature-logo:hover {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

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

/* Portfolio Cards */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.portfolio-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card .card-content {
    padding: 3rem;
}

/* AI Visual Section */
.ai-spotlight {
    background: #fbfbfd;
    border-radius: 40px;
    padding: 6rem;
    margin: 4rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-text {
    flex: 1;
}

.ai-visual {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.visual-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s;
}

.visual-box:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.visual-box span {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 100px 5% 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fbfbfd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-logo-img {
    height: 1.5rem;
    width: 7.5rem;
    display: block;
    object-fit: contain;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .section {
        padding: 100px 5%;
    }
    .hero {
        padding: 140px 5% 100px;
    }
    .hero h1 { 
        font-size: clamp(3.5rem, 10vw, 5.5rem); 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(10px);
        -webkit-backdrop-filter: saturate(180%) blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        flex-direction: column;
        padding: 2rem 5%;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

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

    .nav-links a {
        display: block;
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .section {
        padding: 80px 5%;
    }

    .card {
        padding: 3rem;
    }

    .grid {
        gap: 2rem;
    }

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

    .portfolio-image {
        height: 250px;
    }

    .portfolio-card .card-content {
        padding: 2rem;
    }
}

