/* =================================================================
   SAAS DEVELOPMENT PAGE STYLES
   ================================================================= */

/* ----------------------------------
   HERO SECTION
   ---------------------------------- */
.saas-hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Align content to top for better flow */
    overflow: hidden;
}

.saas-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.holo-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46, 107, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 107, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

.holo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 107, 255, 0.2), transparent 70%);
    filter: blur(100px);
    opacity: 0.6;
}

.saas-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.saas-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(46, 107, 255, 0.1);
    border: 1px solid rgba(46, 107, 255, 0.3);
    border-radius: 100px;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--color-secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(46, 107, 255, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-secondary);
    animation: pulse 2s infinite;
}

.saas-hero__content .title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.saas-hero__content .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.saas-hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(46, 107, 255, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(46, 107, 255, 0.5);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}

/* ----------------------------------
   PROBLEM SECTION
   ---------------------------------- */
.saas-problem {
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
}

.saas-problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problem-list li {
    display: flex;
    gap: 15px;
}

.problem-list .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: flex-start; /* Align icon to top of text */
    justify-content: center;
    flex-shrink: 0;
}

.problem-list i {
    font-size: 1.5rem;
    color: #ef4444;
}

.problem-list strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.problem-list p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Problem Visuals: System Monitor */
.system-monitor {
    background: #050816;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: monospace;
}

.monitor-header {
    background: rgba(239, 68, 68, 0.1);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.monitor-header .dots { display: flex; gap: 6px; }
.monitor-header .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(239, 68, 68, 0.4); }
.monitor-title { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.monitor-screen {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.log-row { display: flex; gap: 10px; align-items: center; }
.log-row .time { color: rgba(255,255,255,0.3); }
.log-row .status { font-weight: bold; }
.log-row.error .status { color: #ef4444; }
.log-row.warn .status { color: #eab308; }
.log-row.fatal .status { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 4px; }
.log-row.info .status { color: #3b82f6; }

.cursor-blink {
    color: var(--color-secondary);
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ----------------------------------
   ARCHITECTURE SECTION
   ---------------------------------- */
.saas-architecture {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.saas-architecture__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.saas-architecture__content {
    order: 2; /* Text on right */
}

.saas-architecture__visual {
    order: 1; /* Visual on left */
    display: flex;
    justify-content: center;
}

.arch-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.arch-point {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}

.arch-point:hover { border-left-color: var(--color-secondary); }

.point-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.1);
    font-weight: 700;
}

.arch-point h4 { font-size: 1.2rem; color: #fff; }
.arch-point p { font-size: 0.95rem; color: var(--color-text-muted); }

/* Infra Map Visual */
.infra-map {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-core {
    width: 100px;
    height: 100px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 40px rgba(46, 107, 255, 0.4);
    position: relative;
}

.infra-core i { font-size: 2rem; }
.infra-core span { font-size: 0.7rem; margin-top: 5px; font-weight: 600; }

.infra-orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: spinOrbit 20s linear infinite;
}

.infra-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #0a0f2e;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.n1 { top: -25px; left: 50%; transform: translateX(-50%); }
.n2 { bottom: -25px; left: 50%; transform: translateX(-50%); }
.n3 { left: -25px; top: 50%; transform: translateY(-50%); }
.n4 { right: -25px; top: 50%; transform: translateY(-50%); }

@keyframes spinOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ----------------------------------
   FEATURES SECTION (BENTO)
   ---------------------------------- */
.saas-engine {
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
}

.saas-engine__header {
    text-align: center;
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.bento-card.large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(46, 107, 255, 0.3);
    transform: translateY(-5px);
}

.bento-icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 107, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.bento-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.bento-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ----------------------------------
   ARCHITECTURE SECTION
   ---------------------------------- */
.saas-architecture {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.saas-architecture__header {
    text-align: center;
    margin-bottom: 100px;
    position: relative; /* For z-index */
    z-index: 2;
}

.saas-architecture__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.saas-architecture__header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.arch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-secondary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.arch-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 107, 255, 0.1);
    border-radius: 16px;
    display: flex; /* Ensure icon is centered */
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.arch-card:hover .arch-icon { transform: scale(1.1) rotate(-5deg); background: var(--color-secondary); color: #fff; }

.arch-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.arch-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ----------------------------------
   FEATURES SECTION
   ---------------------------------- */
.saas-features { /* Renamed from saas-features to saas-engine for clarity */
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
}

.saas-features__header {
    text-align: center;
    margin-bottom: 80px;
} /* Renamed from saas-features__header to saas-engine__header */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(46, 107, 255, 0.3);
    transform: translateY(-5px);
} /* Renamed from feature-card to saas-engine__card */

.feature-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.feature-content h3 {
    font-family: var(--font-heading); /* Renamed from feature-content h3 to saas-engine__card-title */
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
} /* Renamed from feature-content p to saas-engine__card-desc */

/* ----------------------------------
   NEW SECTION: ENGINEERING LIFECYCLE (PROCESS)
   ---------------------------------- */
.saas-process {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.saas-process::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.saas-process__header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.saas-process__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.saas-process__header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.process-step:hover .step-num {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    transform: scale(1.1);
}

.step-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    flex-grow: 1;
    transition: all 0.4s ease;
}

.process-step:hover .step-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(46, 107, 255, 0.3);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #fff;
}

.step-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* ----------------------------------
   NEW SECTION: TECH STACK
   ---------------------------------- */
.saas-techstack {
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.saas-techstack__header {
    text-align: center;
    margin-bottom: 80px;
}

.saas-techstack__header h2 { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 24px; line-height: 1.1; }
.saas-techstack__header p { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.6; max-width: 600px; margin: 0 auto; }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-secondary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tech-card i {
    font-size: 3rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.tech-card:hover i {
    color: var(--color-secondary);
}

.tech-card span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.tech-card:hover span {
    color: #fff;
}

/* ----------------------------------
   NEW SECTION: CASE STUDIES
   ---------------------------------- */
.saas-case-studies {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.saas-case-studies::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.saas-case-studies__header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.saas-case-studies__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.saas-case-studies__header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-secondary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.case-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.case-stats {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #fff;
}

.case-link i {
    transition: transform 0.3s ease;
}

.case-link:hover i {
    transform: translateX(5px);
}

/* ----------------------------------
   FAQ & CTA
   ---------------------------------- */
.saas-faq {
    padding: 140px 0;
    background: var(--color-bg);
}

.ui-faq__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.ui-faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ui-section-header { margin-bottom: 40px; }

.ui-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-trigger i {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
    color: var(--color-secondary);
}

.faq-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-content p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.saas-cta-box {
    background: linear-gradient(135deg, #0a0f2e, #000);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    border-radius: 32px;
    text-align: center;
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.saas-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.saas-cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ----------------------------------
   RESPONSIVE
   ---------------------------------- */
@media (max-width: 1024px) {
    .saas-hero__actions {
        flex-wrap: wrap;
    }

    .saas-problem__grid {
        grid-template-columns: 1fr;
    }
    
    .saas-architecture__layout {
        grid-template-columns: 1fr;
    }
    
    .saas-architecture__content {
        order: 1;
    }
    
    .saas-architecture__visual {
        order: 2;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .bento-card.large {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }

    .arch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ui-faq__grid {
        grid-template-columns: 1fr;
    }

    .saas-cta-box {
        position: static;
        top: auto;
        margin-top: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-study-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .saas-hero {
        padding: 100px 0 60px;
        min-height: auto;
        text-align: center;
    }

    .saas-hero__content {
        text-align: center;
        margin: 0 auto;
    }
    
    .saas-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .saas-hero__content .title {
        font-size: 3rem;
        word-wrap: break-word;
    }

    .saas-problem, .saas-architecture, .saas-features, .saas-faq {
        padding: 80px 0;
    }

    .infra-map {
        width: 300px;
        height: 300px;
        transform: none;
    }

    .infra-orbit {
        width: 220px;
        height: 220px;
    }

    .infra-node {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .n1 { top: -20px; }
    .n2 { bottom: -20px; }
    .n3 { left: -20px; }
    .n4 { right: -20px; }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .tech-grid, .case-study-grid {
        grid-template-columns: 1fr;
    }

    .arch-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .case-card,
    .arch-card,
    .feature-card,
    .step-content,
    .saas-cta-box {
        padding: 28px;
    }

    .system-monitor {
        font-size: 0.8rem;
    }

    .log-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .saas-hero__content .title {
        font-size: 2.5rem;
    }

    .btn-primary,
    .btn-outline {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .saas-hero__actions {
        width: 100%;
    }

    .infra-map {
        width: 240px;
        height: 240px;
    }

    .infra-orbit {
        width: 180px;
        height: 180px;
    }

    .infra-core {
        width: 80px;
        height: 80px;
    }
}
