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

:root {
    --primary-color: #0071e3; /* Apple Blue */
    --accent-color: #ff3b30;  /* Apple Red */
    --bg-light: #f5f5f7;      /* Apple Light Gray */
    --bg-dark: #000000;       /* Apple Black */
    --text-main: #1d1d1f;     /* Apple Dark Text */
    --text-secondary: #86868b; /* Apple Gray Text */
    --text-light: #f5f5f7;    /* Light text on dark bg */
    --card-bg: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother transition */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 980px; /* Apple's standard container width */
    margin: 0 auto;
    padding: 0 22px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.section-title {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: .009em;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px; /* Fully rounded pill */
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -.022em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #0077ED;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Header - Modern Glassmorphism (Apple Style) */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0;
    height: 52px; /* Increased from 44px */
    display: flex;
    align-items: center;
    border-bottom: none;
    transition: background-color 0.3s ease;
}

.header.dark-mode {
    background: rgba(0, 0, 0, 0.8);
}

.header.dark-mode .nav-link,
.header.dark-mode .logo-text,
.header.dark-mode .lang-switch {
    color: #f5f5f7;
}

.header.dark-mode .nav-link:hover {
    color: #ffffff;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 20px;
}

.logo-icon img {
    width: 120px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px; /* Increased from 14px */
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px; /* Increased from 12px */
    line-height: 3.71428; /* Adjusted for 52px height */
    font-weight: 500;
    letter-spacing: -.01em;
    color: rgba(0,0,0,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #000000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    padding: 6px 16px;
    font-size: 13px;
}

.lang-switch {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding-top: 52px; /* Adjusted for 52px header */
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-content h1 span {
    background: linear-gradient(90deg, #2E3192 0%, #1BFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: .007em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Timeline Section (Bento Grid Style) */
.timeline-section {
    padding: 120px 0;
    background-color: #ffffff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    background-color: var(--bg-light);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.timeline-date {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.bento-card h3 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Make the last card span 2 columns if needed, or adjust layout */
.bento-card.wide {
    grid-column: span 2;
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 980px;
    background: transparent;
    border: 1px solid #d2d2d7;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn:hover {
    border-color: var(--text-main);
}

.tab-btn.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

.service-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.service-content.active {
    display: block;
}

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

.service-details {
    background: #ffffff;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.service-desc {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.service-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.icon-box h4 {
    font-size: 19px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.icon-box small {
    font-size: 14px;
    color: var(--text-secondary);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 28px;
}

/* Advantages Section (Dark Mode) */
.advantages-section {
    padding: 160px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.advantages-section .section-title {
    color: #ffffff;
}

.advantages-section .section-subtitle {
    color: #a1a1a6;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.advantage-card {
    background: #1d1d1f;
    padding: 60px;
    border-radius: 40px;
}

.adv-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.advantage-card h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.adv-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.adv-desc, .adv-list {
    font-size: 19px;
    line-height: 1.4;
    color: #a1a1a6;
}

.adv-list {
    list-style: none;
}

.adv-list li {
    margin-bottom: 16px;
}

.adv-list strong {
    color: #ffffff;
}

/* Success Cases Section */
.cases-section {
    padding: 160px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.case-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.case-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.case-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.case-quote {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--text-main);
    flex-grow: 1;
}

/* Brands Section */
.brands-section {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

.brands-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

/* Mask for fade effect on edges */
.brands-marquee-wrapper::before,
.brands-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.brands-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}
.brands-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.brands-marquee {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: scroll-marquee 30s linear infinite;
    width: max-content;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

.brands-marquee:hover {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    cursor: default;
    white-space: nowrap;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-item:hover {
    color: var(--text-main);
}

/* Contact Section */
.contact-section {
    padding: 160px 0;
    background: #ffffff;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 40px;
    padding: 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 19px;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-group {
    flex: 1;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    font-size: 17px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.submit-btn {
    align-self: center;
    padding: 16px 48px;
    font-size: 19px;
    border-radius: 980px;
    margin-top: 16px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d2d2d7;
}

.footer-brand .logo-text {
    font-size: 20px;
    color: var(--text-main);
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-col a, .footer-col p {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
}

/* Responsive fixes */
@media (max-width: 834px) {
    .section-title { font-size: 40px; }
    .hero-content h1 { font-size: 56px; }
    .hero-content p { font-size: 24px; }
    .bento-grid, .advantages-grid, .cases-grid { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
    .nav { display: none; } /* Hide nav on mobile, would need a hamburger menu */
    .form-row { flex-direction: column; gap: 24px; }
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { flex-wrap: wrap; gap: 40px; }
    .service-icons { grid-template-columns: 1fr 1fr; }
}
