/* rational.monster - Brutalist Zen Design */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #f5f0e8;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grid Overlay - Brutalist exposed grid lines */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
}

.grid-overlay__line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #1a1a2e;
}

.grid-overlay__line-h {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1a1a2e;
}

.crystalline-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Module block stagger animation */
.module-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.module-block--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphic Cards */
.glass-card {
    border-radius: 4px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.glass-card--ocean {
    background: rgba(74, 144, 217, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 144, 217, 0.2);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.06);
}

.glass-card--frost {
    background: rgba(245, 240, 232, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(108, 117, 125, 0.15);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.04);
}

.glass-card--deep {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 144, 217, 0.3);
    box-shadow: 0 12px 48px rgba(26, 26, 46, 0.15);
    color: #f5f0e8;
}

.glass-card__text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #1a1a2e;
}

/* Crystalline Shapes */
.crystalline-shape {
    position: absolute;
    pointer-events: none;
}

.crystalline-hex {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.15), rgba(232, 184, 75, 0.1));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.crystalline-hex-sm {
    width: 50px;
    height: 50px;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.2), rgba(74, 144, 217, 0.1));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.crystalline-diamond {
    width: 40px;
    height: 40px;
    bottom: -10px;
    right: 20px;
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.25), rgba(74, 144, 217, 0.15));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
    background: linear-gradient(170deg, #1a1a2e 0%, #1a1a2e 45%, #f5f0e8 45.1%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1100px;
    width: 100%;
}

.hero-block {
    position: relative;
    padding: 40px;
}

.hero-block--title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid #e8b84b;
    border-bottom: 1px solid rgba(74, 144, 217, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f5f0e8;
}

.hero-title--accent {
    color: #e8b84b;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #6c757d;
    margin-top: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-block--glass {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
}

.hero-block--crystal {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(26, 26, 46, 0.1);
}

.hero-block--nav {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
}

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

.hero-nav__link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #1a1a2e;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.hero-nav__link:hover {
    border-bottom-color: #e8b84b;
    color: #4a90d9;
}

.crystal-prism {
    transition: transform 0.5s ease;
}

/* === MODULES SECTION === */
.modules-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    background-color: #f5f0e8;
}

.section-header {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

.section-rule {
    width: 80px;
    height: 3px;
    background-color: #e8b84b;
    margin-top: 16px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.module-cell {
    position: relative;
    border: 1px solid rgba(26, 26, 46, 0.08);
    padding: 8px;
}

.module-cell--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.module-cell--tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.module-cell--wide {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.module-cell--medium {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.module-cell--small {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.module-cell--accent {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.module-cell__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.module-cell__text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6c757d;
}

.module-cell--tall .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accent-block {
    text-align: center;
}

.accent-block__number {
    display: block;
    font-size: 3.5rem;
    font-weight: 200;
    color: #e8b84b;
    line-height: 1;
}

.accent-block__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6c757d;
    margin-top: 12px;
}

.crystal-hexagon {
    transition: transform 0.5s ease;
}

.crystal-hexagon:hover {
    transform: rotate(30deg) scale(1.1);
}

/* === PHILOSOPHY SECTION === */
.philosophy-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #f5f0e8 0%, #1a1a2e 100%);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.philosophy-block {
    padding: 40px;
    position: relative;
}

.philosophy-block--text {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    border-left: 3px solid #4a90d9;
}

.philosophy-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.philosophy-body {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: #6c757d;
}

.philosophy-block--visual {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zen Garden */
.zen-garden {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(245, 240, 232, 0.3);
}

.zen-garden__line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(108, 117, 125, 0.2);
    border-radius: 50%;
}

.zen-garden__line:nth-child(1) { top: 30%; }
.zen-garden__line:nth-child(2) { top: 40%; }
.zen-garden__line:nth-child(3) { top: 50%; }
.zen-garden__line:nth-child(4) { top: 60%; }
.zen-garden__line:nth-child(5) { top: 70%; }

.zen-garden__stone {
    position: absolute;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.zen-garden__stone--1 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #6c757d, #1a1a2e);
    top: 35%;
    left: 25%;
}

.zen-garden__stone--2 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 35% 35%, #4a90d9, #1a1a2e);
    top: 50%;
    left: 60%;
}

.zen-garden__stone--3 {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 35%, #e8b84b, #6c757d);
    top: 55%;
    left: 75%;
}

.philosophy-block--glass {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.philosophy-quote {
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: #f5f0e8;
    border-left: 3px solid #e8b84b;
    padding-left: 24px;
}

.philosophy-block--crystal {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-cluster {
    transition: transform 0.5s ease;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    background-color: #1a1a2e;
}

.features-section .section-title {
    color: #f5f0e8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-block {
    position: relative;
}

.feature-block .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6c757d;
}

.feature-block .glass-card--frost .feature-title {
    color: #1a1a2e;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    background-color: #f5f0e8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-block {
    padding: 20px 0;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: #6c757d;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.contact-detail__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
}

.contact-detail__value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    margin-bottom: 8px;
}

.glass-card--deep .form-label {
    color: rgba(245, 240, 232, 0.6);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 2px;
    background: rgba(245, 240, 232, 0.05);
    color: #f5f0e8;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(108, 117, 125, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #e8b84b;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    padding: 14px 32px;
    border: 2px solid #e8b84b;
    border-radius: 2px;
    background: transparent;
    color: #e8b84b;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    background-color: #e8b84b;
    color: #1a1a2e;
}

.form-submit--sent {
    background-color: #4a90d9;
    border-color: #4a90d9;
    color: #f5f0e8;
}

/* === FOOTER === */
.site-footer {
    padding: 40px;
    background-color: #1a1a2e;
    border-top: 1px solid rgba(74, 144, 217, 0.2);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f5f0e8;
}

.footer-brand--accent {
    color: #e8b84b;
}

.footer-text {
    font-size: 0.8rem;
    font-weight: 300;
    color: #6c757d;
    text-align: center;
}

.footer-block--links {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}

.footer-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e8b84b;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero-grid,
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-block--title { grid-column: 1; grid-row: auto; }
    .hero-block--glass { grid-column: 1; grid-row: auto; }
    .hero-block--crystal { grid-column: 1; grid-row: auto; }
    .hero-block--nav { grid-column: 1; grid-row: auto; }

    .hero-section {
        background: linear-gradient(170deg, #1a1a2e 0%, #1a1a2e 30%, #f5f0e8 30.1%);
    }

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

    .module-cell--large,
    .module-cell--tall,
    .module-cell--wide,
    .module-cell--medium,
    .module-cell--small,
    .module-cell--accent {
        grid-column: 1;
        grid-row: auto;
    }

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

    .philosophy-block--text { grid-column: 1; grid-row: auto; }
    .philosophy-block--visual { grid-column: 1; grid-row: auto; }
    .philosophy-block--glass { grid-column: 1; grid-row: auto; }
    .philosophy-block--crystal { grid-column: 1; grid-row: auto; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-block--links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-nav {
        flex-direction: column;
        gap: 16px;
    }

    .hero-section,
    .modules-section,
    .philosophy-section,
    .features-section,
    .contact-section {
        padding: 60px 20px;
    }
}