/* ============================================
   DIBOP PAGE STYLES
   Design language: OMDA family, amber accent
   ============================================ */

/* ============================================
   DESIGN SYSTEM — CSS Custom Properties
   ============================================ */
:root {
    --midnight: #080F1E;
    --navy: #0C1829;
    --navy-light: #111E33;
    --surface: #162035;
    --amber: #F59E0B;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --amber-glow: rgba(245, 158, 11, 0.35);
    --amber-bright: #FBC43A;
    --rose: #F43F5E;
    --rose-dim: rgba(244, 63, 94, 0.15);
    --orange: #FB923C;
    --orange-dim: rgba(251, 146, 60, 0.15);
    --white: #FAFBFD;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   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: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--midnight);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(8, 15, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo-name {
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em;
    color: var(--gray-400); text-transform: uppercase;
}

.nav__links {
    display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav__links a {
    font-size: 0.875rem; font-weight: 500; color: var(--gray-400);
    text-decoration: none; letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
    background: var(--amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--amber); padding: 8px 20px; border-radius: 6px;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
    text-decoration: none; transition: all 0.2s ease;
}
.nav__cta:hover {
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
    color: var(--amber);
}

.nav__toggle {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--gray-400); font-size: 1.25rem; padding: 4px;
    transition: color 0.2s ease;
}
.nav__toggle:hover { color: var(--white); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px;
    position: relative; overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}

.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--amber); padding: 6px 14px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 28px;
}

.hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--amber);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700; line-height: 1.15;
    color: var(--white); margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title em {
    font-style: normal; color: var(--amber);
}

.hero__subtitle {
    font-size: 1.1rem; line-height: 1.75;
    color: var(--text-secondary); margin-bottom: 40px;
    max-width: 520px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn--primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--amber); color: #0C1829;
    padding: 14px 28px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
    text-decoration: none; transition: all 0.25s var(--ease-out-back);
    border: none; cursor: pointer;
}
.btn--primary:hover {
    background: var(--amber-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn--ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    padding: 14px 28px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
    text-decoration: none; transition: all 0.25s ease;
    cursor: pointer;
}
.btn--ghost:hover {
    border-color: var(--gray-500);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   INTEGRATION DIAGRAM (HERO RIGHT SIDE)
   ============================================ */
.diagram-wrapper {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.integration-diagram {
    width: 100%; max-width: 480px;
    height: auto; overflow: visible;
    filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.08));
}

/* Chaos line styles */
.c-line {
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: opacity 0.8s ease;
}
.c-line.red    { stroke: #ef4444; opacity: 0.55; }
.c-line.orange { stroke: #f97316; opacity: 0.5;  }
.c-line.purple { stroke: #a855f7; opacity: 0.45; }
.c-line.gray   { stroke: #64748b; opacity: 0.4;  }
.c-line.dim    { opacity: 0.3; }

/* Chaos flicker animations for 'broken' feel */
.c-line.red    { animation: flicker-red    3.2s ease-in-out infinite; }
.c-line.orange { animation: flicker-orange 2.8s ease-in-out infinite 0.4s; }
.c-line.purple { animation: flicker-purple 3.6s ease-in-out infinite 0.8s; }
.c-line.gray   { animation: flicker-gray   4s   ease-in-out infinite 1.2s; }

@keyframes flicker-red    { 0%,100%{opacity:0.55}40%{opacity:0.2}70%{opacity:0.6} }
@keyframes flicker-orange { 0%,100%{opacity:0.5} 30%{opacity:0.15}65%{opacity:0.55} }
@keyframes flicker-purple { 0%,100%{opacity:0.45}50%{opacity:0.1} 80%{opacity:0.5} }
@keyframes flicker-gray   { 0%,100%{opacity:0.4} 45%{opacity:0.1} 75%{opacity:0.45} }

/* When transitioning to order state, pause chaos flicker */
.integration-diagram.order-active .c-line { animation: none; }

/* Order layer styles */
.order-layer {
    opacity: 0;
    transition: opacity 0.9s ease 0.4s;
}
.chaos-layer {
    opacity: 1;
    transition: opacity 0.7s ease;
}

.integration-diagram.order-active .chaos-layer { opacity: 0; }
.integration-diagram.order-active .order-layer  { opacity: 1; }

.o-spoke {
    stroke: var(--amber); stroke-width: 1.5;
    stroke-linecap: round; opacity: 0.6;
}

.dibop-center-circle {
    animation: dibop-breathe 3s ease-in-out infinite;
}
@keyframes dibop-breathe {
    0%,100% { filter: drop-shadow(0 0 8px rgba(245,158,11,0.4)); }
    50%      { filter: drop-shadow(0 0 18px rgba(245,158,11,0.7)); }
}

.flow-dot { opacity: 0.9; }

/* Diagram before/after tabs */
.diagram-tabs {
    display: flex; gap: 0; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--gray-700);
}
.d-tab {
    padding: 8px 20px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--gray-500); cursor: pointer;
    transition: all 0.3s ease;
    background: transparent; user-select: none;
}
.d-tab.active {
    background: var(--amber-dim);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.3);
}

.diagram-caption {
    font-size: 0.8rem; color: var(--gray-500);
    text-align: center; min-height: 1.4em;
    transition: opacity 0.4s ease;
}

/* ============================================
   PAIN SECTION
   ============================================ */
.pain {
    padding: 80px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

.section__header {
    text-align: center; margin-bottom: 60px;
}
.section__eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--amber);
    margin-bottom: 16px; display: block;
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700; color: var(--white);
    line-height: 1.25; letter-spacing: -0.02em;
}
.section__subtitle {
    margin-top: 16px; font-size: 1.05rem;
    color: var(--text-secondary); max-width: 600px; margin-left: auto; margin-right: auto;
}

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

.pain-card {
    background: var(--navy-light);
    border: 1px solid var(--gray-800);
    border-radius: 12px; padding: 32px 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.pain-card:hover {
    border-color: rgba(244, 63, 94, 0.3);
    transform: translateY(-4px);
}

.pain-card__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--rose-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 20px; color: var(--rose);
}

.pain-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
}

.pain-card__body {
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how {
    padding: 100px 0;
    background: var(--midnight);
}

.how__steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 40px; margin-top: 64px; position: relative;
}

.how__steps::before {
    content: '';
    position: absolute; top: 28px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
    height: 1px; background: linear-gradient(to right, var(--amber-dim), var(--amber-dim));
    z-index: 0;
}

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

.step__number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--navy-light);
    border: 2px solid var(--amber);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    color: var(--amber); margin: 0 auto 24px;
    position: relative; z-index: 1;
    box-shadow: 0 0 0 8px var(--midnight);
}

.step__title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
}

.step__body {
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   PRINCIPLES SECTION
   ============================================ */
.principles {
    padding: 100px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.04);
}

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

.principle-card {
    background: var(--midnight);
    border: 1px solid var(--gray-800);
    border-radius: 16px; padding: 36px 30px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative; overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(to right, var(--amber), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}

.principle-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-5px);
}
.principle-card:hover::before { opacity: 1; }

.principle-card__icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 24px; color: var(--amber);
}

.principle-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--white); margin-bottom: 14px;
}

.principle-card__body {
    font-size: 0.9rem; line-height: 1.75;
    color: var(--text-secondary);
}

/* ============================================
   NOT-THIS SECTION
   ============================================ */
.not-this {
    padding: 100px 0;
    background: var(--midnight);
}

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

.not-card {
    background: var(--navy-light);
    border: 1px solid var(--gray-800);
    border-radius: 12px; padding: 32px 28px;
}

.not-card__check {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: #10B981; font-size: 0.9rem; margin-bottom: 18px;
}

.not-card__title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--white); margin-bottom: 10px;
}

.not-card__clarify {
    font-size: 0.875rem; font-weight: 600;
    color: var(--amber); margin-bottom: 8px;
}

.not-card__body {
    font-size: 0.875rem; line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   START SECTION
   ============================================ */
.start {
    padding: 100px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.start__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
}

.start__lead {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700; color: var(--white);
    line-height: 1.3; margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.start__body {
    font-size: 1rem; line-height: 1.8;
    color: var(--text-secondary); margin-bottom: 16px;
}

.start__timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-step {
    display: flex; gap: 20px; padding-bottom: 32px;
    position: relative;
}
.timeline-step:not(:last-child)::after {
    content: ''; position: absolute;
    left: 17px; top: 40px; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--amber-dim), transparent);
}

.timeline-step__dot {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--amber-dim);
    border: 2px solid var(--amber);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: var(--amber);
    margin-top: 2px;
}

.timeline-step__title {
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 700;
    color: var(--white); margin-bottom: 6px;
}

.timeline-step__body {
    font-size: 0.875rem; line-height: 1.65;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-band {
    padding: 100px 0;
    background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center; position: relative; overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band__logo {
    height: 48px; width: auto; margin: 0 auto 28px;
    display: block; opacity: 0.9;
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700; color: var(--white);
    margin-bottom: 16px; letter-spacing: -0.02em;
}

.cta-band__sub {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 520px; margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #040A14;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 32px;
}

.footer__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 60px; margin-bottom: 48px;
}

.footer__brand-logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    text-decoration: none;
}
.footer__brand-logo img { height: 30px; width: auto; }
.footer__brand-name {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.05em; color: var(--gray-400);
    text-transform: uppercase;
}

.footer__tagline {
    font-size: 0.875rem; color: var(--gray-600);
    line-height: 1.6; max-width: 280px;
}

.footer__col-title {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray-500); margin-bottom: 18px;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
    font-size: 0.875rem; color: var(--gray-600);
    text-decoration: none; transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--gray-300); }

.footer__contact-email {
    font-size: 0.875rem; color: var(--amber);
    text-decoration: none; transition: color 0.2s ease;
}
.footer__contact-email:hover { color: var(--amber-bright); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
}

.footer__copy {
    font-size: 0.8rem; color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner { gap: 40px; }
    .how__steps { gap: 24px; }
    .principles__grid { gap: 16px; }
    .not-this__grid { gap: 16px; }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .diagram-wrapper { max-width: 400px; margin: 0 auto; }

    .pain__grid,
    .how__steps,
    .principles__grid,
    .not-this__grid { grid-template-columns: 1fr 1fr; }

    .how__steps::before { display: none; }

    .start__inner { grid-template-columns: 1fr; gap: 48px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .nav__inner { padding: 0 20px; }
    .nav__links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8,15,30,0.98); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
    .nav__links.open { display: flex; }
    .nav__links li { padding: 2px 0; }
    .nav__links a { padding: 12px 24px; display: block; font-size: 0.95rem; }
    .nav__toggle { display: block; }

    .hero { padding: 100px 0 60px; }
    .hero__inner,
    .section__inner { padding: 0 20px; }

    .pain__grid,
    .how__steps,
    .principles__grid,
    .not-this__grid { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__inner { padding: 0 20px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
