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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a2e;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: #64748b;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    color: #1a1a2e;
}

.logo-accent {
    color: #6366f1;
}

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

.nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
    transition: color 0.25s;
}

.nav a:hover {
    color: #6366f1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a2e;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.hstat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
}

.hstat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

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

/* Printer Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.printer-anim {
    position: relative;
    width: 300px;
    height: 300px;
}

.printer-body {
    width: 200px;
    height: 240px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(99,102,241,0.3);
    border-radius: 16px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.printer-frame {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 8px;
}

.printer-bed {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: rgba(99,102,241,0.3);
    border-radius: 4px;
}

.printer-head {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: #6366f1;
    border-radius: 4px;
    animation: printHead 3s ease-in-out infinite;
}

.nozzle {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #818cf8;
    border-radius: 50%;
}

.printed-object {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 0;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    border-radius: 4px 4px 0 0;
    animation: printGrow 3s ease-in-out infinite;
}

@keyframes printHead {
    0%, 100% { left: 30%; }
    50% { left: 70%; }
}

@keyframes printGrow {
    0% { height: 0; }
    100% { height: 80px; }
}

.floating-tags {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ftag {
    position: absolute;
    padding: 6px 14px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #818cf8;
    animation: tagFloat 4s ease-in-out infinite;
}

.ftag:nth-child(1) { top: 10%; left: -10%; animation-delay: 0s; }
.ftag:nth-child(2) { top: 30%; right: -5%; animation-delay: 0.5s; }
.ftag:nth-child(3) { bottom: 30%; left: -5%; animation-delay: 1s; }
.ftag:nth-child(4) { bottom: 10%; right: -10%; animation-delay: 1.5s; }
.ftag:nth-child(5) { top: 50%; right: -15%; animation-delay: 2s; }

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down span {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: #f8fafc;
}

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

.service-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.service-card > p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #475569;
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

/* ===== MATERIALS ===== */
.materials {
    padding: 100px 0;
    background: white;
}

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

.material-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.material-color {
    height: 100px;
    width: 100%;
}

.material-info {
    padding: 24px;
}

.material-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
}

.material-price {
    float: right;
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 600;
}

.material-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 12px 0;
    clear: both;
}

.material-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.material-tags span {
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #475569;
}

.materials-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    color: #475569;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
    background: #f8fafc;
}

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

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.portfolio-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pimg-placeholder {
    text-align: center;
    color: #4f46e5;
}

.pimg-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.pimg-placeholder p {
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-info {
    padding: 20px 24px;
}

.portfolio-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== PROCESS ===== */
.process {
    padding: 100px 0;
    background: white;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pstep {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    text-align: center;
    padding: 32px 20px;
    background: #f8fafc;
    border-radius: 20px;
    position: relative;
}

.pstep-num {
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #6366f1;
    background: white;
    padding: 4px 12px;
    border-radius: 50px;
    border: 2px solid #e0e7ff;
}

.pstep-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.pstep h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pstep p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.pstep-arrow {
    font-size: 1.5rem;
    color: #6366f1;
    font-weight: 700;
    margin-top: 40px;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

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

.price-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.price-card.featured {
    border: 2px solid #6366f1;
    transform: scale(1.02);
}

.price-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.price-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 6px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header {
    margin-bottom: 24px;
}

.price-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-value {
    font-size: 1rem;
    color: #64748b;
}

.price-value strong {
    font-size: 2.5rem;
    color: #1a1a2e;
    font-weight: 800;
}

.price-value span {
    font-size: 1rem;
}

.price-features {
    list-style: none;
    margin-bottom: 24px;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.price-examples {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.price-examples p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 4px 0;
}

.price-examples strong {
    color: #1a1a2e;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    color: #475569;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ORDER ===== */
.order {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    color: white;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.order-info h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 16px 0 20px;
    line-height: 1.2;
}

.order-info > p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.order-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oc-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.oc-icon {
    width: 48px;
    height: 48px;
    background: rgba(99,102,241,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.oc-item strong {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
}

.oc-item a, .oc-item span {
    color: white;
    font-weight: 500;
}

.oc-item a:hover {
    color: #818cf8;
}

.order-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s;
    background: #f8fafc;
    color: #1a1a2e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
}

.form-group select {
    cursor: pointer;
}

.file-group {
    position: relative;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: #f8fafc;
}

.file-label:hover {
    border-color: #6366f1;
    background: rgba(99,102,241,0.05);
}

.file-label input {
    display: none;
}

.file-icon {
    font-size: 1.5rem;
}

.file-text {
    font-size: 0.9rem;
    color: #64748b;
}

.file-name {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 500;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a2e;
    transition: color 0.25s;
}

.faq-question:hover {
    color: #6366f1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
    color: #6366f1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f0f1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: #818cf8;
}

.footer-contacts p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contacts a {
    color: rgba(255,255,255,0.5);
    transition: color 0.25s;
}

.footer-contacts a:hover {
    color: #818cf8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ===== FIXED CTA ===== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.fixed-cta.visible {
    transform: translateY(0);
}

.fixed-text {
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid,
    .order-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .materials-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid,
    .materials-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .pstep-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .order-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .fixed-cta {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .printer-anim {
        transform: scale(0.8);
    }
}
