/* ============================================
   VELLOI - AI Luxury Personalized Jewelry
   Design System & Styles
   ============================================ */

/* ============================================
   FONTS - Blosta Script & Kabel
   ============================================ */
@font-face {
    font-family: 'Blosta Script';
    src: url('https://fonts.cdnfonts.com/s/29986/BlostaScript.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES - Brand Tokens
   ============================================ */
:root {
    /* Brand Colors */
    --obsidian: #1B1A1A;
    --verdant: #364734;
    --rose-gold: #A98E7E;
    --sage: #91917F;
    --parchment: #F6ECDA;

    /* Semantic Colors */
    --color-bg-primary: var(--obsidian);
    --color-bg-secondary: var(--parchment);
    --color-accent: var(--verdant);
    --color-highlight: var(--rose-gold);
    --color-muted: var(--sage);
    --color-text-dark: var(--obsidian);
    --color-text-light: var(--parchment);

    /* Typography */
    --font-display: 'Blosta Script', 'Georgia', serif;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Cormorant Garamond', 'Georgia', serif;

    /* Type Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 3vw, 5rem);
    --text-5xl: clamp(3rem, 2.5rem + 4vw, 7rem);

    /* Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);
    --space-3xl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 1200ms cubic-bezier(0.25, 1, 0.5, 1);

    /* Shadows */
    --shadow-subtle: 0 2px 8px rgba(27, 26, 26, 0.08);
    --shadow-medium: 0 4px 24px rgba(27, 26, 26, 0.12);
    --shadow-luxury: 0 8px 48px rgba(27, 26, 26, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-light);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   NOISE OVERLAY - Cinematic Film Grain
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.font-display {
    font-family: var(--font-display);
    font-weight: 400;
}

.font-heading {
    font-family: var(--font-heading);
    font-weight: 400;
}

.text-balance {
    text-wrap: balance;
}

.letter-spacing-wide {
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.letter-spacing-luxury {
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section--dark {
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
}

.section--light {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-dark);
}

.section--accent {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================
   SHIMMER EFFECT - Jewelry Highlights
   ============================================ */
.shimmer-trigger {
    position: relative;
    overflow: hidden;
}

.shimmer-trigger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(169, 142, 126, 0.08) 48%,
            rgba(169, 142, 126, 0.25) 50%,
            rgba(169, 142, 126, 0.08) 52%,
            transparent 55%);
    transform: rotate(25deg);
    animation: luxuryShimmer 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes luxuryShimmer {
    0% {
        transform: translate(-60%, -60%) rotate(25deg);
    }

    100% {
        transform: translate(60%, 60%) rotate(25deg);
    }
}

/* ============================================
   GLASSMORPHISM - Frosted Cards
   ============================================ */
.glass-card {
    background: rgba(27, 26, 26, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(169, 142, 126, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(169, 142, 126, 0.3);
}

.glass-card--light {
    background: rgba(246, 236, 218, 0.85);
    border-color: rgba(54, 71, 52, 0.1);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--transition-luxury), transform var(--transition-luxury);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity var(--transition-luxury);
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--transition-luxury), transform var(--transition-luxury);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

.delay-5 {
    transition-delay: 500ms;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decorative-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-highlight), transparent);
    margin: var(--space-md) auto;
}

.decorative-line--vertical {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--color-highlight), transparent);
}

.decorative-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-highlight);
    transform: rotate(45deg);
    display: inline-block;
}

/* Ornate Frame */
.ornate-frame {
    position: relative;
    padding: var(--space-xl);
}

.ornate-frame::before,
.ornate-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--color-highlight);
    border-style: solid;
    opacity: 0.4;
}

.ornate-frame::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.ornate-frame::after {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-text-light);
    border: 1px solid var(--color-accent);
}

.btn--primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.btn--secondary {
    background: transparent;
    color: var(--color-highlight);
    border: 1px solid var(--color-highlight);
}

.btn--secondary:hover {
    background: var(--color-highlight);
    color: var(--color-bg-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(246, 236, 218, 0.3);
}

.btn--ghost:hover {
    border-color: var(--color-text-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(54, 71, 52, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(169, 142, 126, 0.08) 0%, transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--space-xl);
}

.hero__logo {
    width: clamp(120px, 20vw, 180px);
    height: auto;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    animation: fadeInScale 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero__title .word:nth-child(1) {
    animation-delay: 1s;
}

.hero__title .word:nth-child(2) {
    animation-delay: 1.15s;
}

.hero__title .word:nth-child(3) {
    animation-delay: 1.3s;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.6s;
}

.hero__cta {
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.5s, float 3s ease-in-out infinite 3s;
}

.hero__scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-muted);
    stroke-width: 1.5;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
    text-align: center;
}

.philosophy__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.philosophy__headline {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
}

.philosophy__description {
    font-size: var(--text-lg);
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.process__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: var(--space-sm);
}

.process__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
}

.process__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.process-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.process-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    stroke: var(--color-highlight);
    stroke-width: 0.5;
    fill: none;
}

.process-card__step {
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

.process-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.process-card__description {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.8;
}

/* ============================================
   MATERIALS SECTION
   ============================================ */
.materials {
    position: relative;
    overflow: hidden;
}

.materials__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.materials__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (max-width: 768px) {
    .materials__content {
        grid-template-columns: 1fr;
    }
}

.materials__text {
    max-width: 500px;
}

.materials__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: var(--space-md);
}

.materials__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
}

.materials__description {
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.materials__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
}

.materials__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.materials__illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ============================================
   ABOUT/ECOSYSTEM SECTION
   ============================================ */
.ecosystem {
    text-align: center;
}

.ecosystem__logo {
    width: 60px;
    height: auto;
    margin: 0 auto var(--space-lg);
    opacity: 0.6;
}

.ecosystem__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.ecosystem__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.ecosystem__description {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    color: var(--color-muted);
}

.ecosystem__link {
    color: var(--color-highlight);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.ecosystem__link:hover {
    border-color: var(--color-highlight);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cta__frame {
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.cta__subtitle {
    font-size: var(--text-lg);
    color: var(--color-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(246, 236, 218, 0.1);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo {
    width: 40px;
    height: auto;
    opacity: 0.7;
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__link {
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-highlight);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(246, 236, 218, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    border-color: var(--color-highlight);
    background: rgba(169, 142, 126, 0.1);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--color-muted);
    transition: fill var(--transition-fast);
}

.footer__social-link:hover svg {
    fill: var(--color-highlight);
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 640px) {
    .section {
        padding: var(--space-2xl) 0;
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .philosophy__headline,
    .process__title,
    .materials__title,
    .cta__title {
        font-size: var(--text-2xl);
    }

    .glass-card {
        padding: var(--space-lg);
    }

    .ornate-frame::before,
    .ornate-frame::after {
        width: 40px;
        height: 40px;
    }
}