/* saram.ai — Ocean Deep Calming Spa Aesthetic */
/* Typography: Sora 600/700, Inter 400/500, IBM Plex Mono 400 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #7B8FA1;
    overflow-x: hidden;
}

/* ===== OCEAN GRADIENT BACKGROUND ===== */
.ocean-gradient {
    background: linear-gradient(180deg, #0B1628 0%, #132440 50%, #0B1628 100%);
    min-height: 100vh;
}

/* ===== WAVE BACKGROUND PATTERN ===== */
.wave-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='320'%3E%3Cpath d='M0,160 C180,240 360,80 540,160 C720,240 900,80 1080,160 C1260,240 1440,120 1440,120' fill='none' stroke='%2393C5FD' stroke-width='2'/%3E%3Cpath d='M0,200 C180,280 360,120 540,200 C720,280 900,120 1080,200 C1260,280 1440,160 1440,160' fill='none' stroke='%2393C5FD' stroke-width='1.5'/%3E%3Cpath d='M0,240 C180,320 360,160 540,240 C720,320 900,160 1080,240 C1260,320 1440,200 1440,200' fill='none' stroke='%2393C5FD' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100% 320px;
    pointer-events: none;
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.hero-wave svg {
    height: 100px;
}

.principles-wave {
    position: relative;
    margin-top: 2rem;
}

.principles-wave svg {
    height: 70px;
}

.connection-wave {
    position: relative;
    top: 0;
    margin-bottom: -1px;
}

.connection-wave svg {
    height: 60px;
}

/* ===== GRADIENT DIVIDER ===== */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #93C5FD, transparent);
    opacity: 0.3;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ===== SECTION HEADING ===== */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #E0ECFF;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 8rem;
    overflow: hidden;
}

.kanji-watermark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(8rem, 20vw, 14rem);
    color: rgba(147, 197, 253, 0.03);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
    user-select: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.headline {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 3.5rem);
    color: #E0ECFF;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #93C5FD;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.cta-pill {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0B1628;
    background: #93C5FD;
    padding: 0.85rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-pill:hover {
    background: #E0ECFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 197, 253, 0.25);
}

/* ===== PRINCIPLES SECTION ===== */
.principles {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.frosted-card {
    background: rgba(19, 36, 64, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(147, 197, 253, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.frosted-card:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 197, 253, 0.35);
    box-shadow: 0 12px 40px rgba(147, 197, 253, 0.1);
}

.frosted-card[data-principle="ethics"]:hover {
    border-color: rgba(110, 231, 183, 0.35);
    box-shadow: 0 12px 40px rgba(110, 231, 183, 0.1);
}

.principle-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.25rem;
}

.principle-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #E0ECFF;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.principle-desc {
    font-size: 0.9rem;
    color: #7B8FA1;
    line-height: 1.6;
}

/* ===== RESEARCH SECTION ===== */
.research {
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.research-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1E3A5F;
    transition: border-color 0.3s ease;
}

.research-item:hover {
    border-bottom-color: #93C5FD;
}

.research-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #93C5FD;
    opacity: 0.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.35rem;
}

.research-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #E0ECFF;
    margin-bottom: 0.4rem;
}

.research-desc {
    font-size: 0.9rem;
    color: #7B8FA1;
    line-height: 1.6;
}

/* ===== ETHOS SECTION ===== */
.ethos {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.ethos-watermark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10rem;
    color: rgba(147, 197, 253, 0.025);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.pull-quote {
    position: relative;
    z-index: 1;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #E0ECFF;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.quote-attribution {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #93C5FD;
    margin-bottom: 2.5rem;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.avatar:hover {
    transform: scale(1.15);
    background: rgba(147, 197, 253, 0.2);
    border-color: rgba(147, 197, 253, 0.5);
}

.avatar span {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #93C5FD;
}

/* ===== CONNECTION / NEWSLETTER SECTION ===== */
.connection {
    position: relative;
    padding: 0 2rem 4rem;
}

.connection-inner {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(19, 36, 64, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(147, 197, 253, 0.12);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.connection-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #E0ECFF;
    margin-bottom: 0.75rem;
}

.connection-desc {
    font-size: 0.95rem;
    color: #7B8FA1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.newsletter-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #E0ECFF;
    background: rgba(11, 22, 40, 0.7);
    border: 1px solid #1E3A5F;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: #7B8FA1;
}

.newsletter-input:focus {
    border-color: #93C5FD;
}

.newsletter-btn {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0B1628;
    background: #6EE7B7;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #93C5FD;
    transform: translateY(-1px);
}

.newsletter-msg {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #6EE7B7;
    min-height: 1.2em;
    margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.8rem;
    color: rgba(147, 197, 253, 0.2);
    margin-bottom: 1.25rem;
    transition: color 0.4s ease;
}

.footer-mark:hover {
    color: rgba(147, 197, 253, 0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.flink {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #93C5FD;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.flink:hover {
    color: #FFFFFF;
}

.footer-copy {
    font-size: 0.75rem;
    color: #7B8FA1;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 4rem 1.5rem 6rem;
    }

    .principle-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 360px;
        margin: 0 auto;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .connection-inner {
        padding: 2rem 1.5rem;
    }

    .team-row {
        gap: 0.75rem;
    }

    .footer-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 2.4rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .glow-orb {
        width: 200px;
        height: 200px;
    }

    .kanji-watermark {
        font-size: 6rem;
    }

    .ethos-watermark {
        font-size: 6rem;
    }
}
