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

:root {
    --primary: #7c5cfc;
    --primary-soft: #a78bfa;
    --accent: #38bdf8;
    --bg: #fafbff;
    --bg-alt: #f0f2ff;
    --text: #1a1a2e;
    --text-soft: #5a5f7a;
    --text-light: #8b90a8;
    --white: #ffffff;
    --border: rgba(124, 92, 252, 0.1);
    --border-strong: rgba(124, 92, 252, 0.2);
    --card-bg: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(124,92,252,0.06);
    --shadow-lg: 0 12px 40px rgba(124,92,252,0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; padding: 18px 0; transition: all 0.3s;
}
.nav.scrolled {
    background: rgba(250, 251, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-decoration: none; letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    color: var(--text-soft); text-decoration: none;
    font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.menu-btn {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-btn span {
    width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s;
}
.menu-btn.active span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.active span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 120px 24px 80px; text-align: center;
    background: linear-gradient(170deg, #f0f0ff 0%, #fafbff 40%, #eef4ff 100%);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

/* Glows */
.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(100px); pointer-events: none;
}
.glow-1 {
    width: 550px; height: 550px;
    background: rgba(124, 92, 252, 0.14);
    top: -140px; right: -80px;
    animation: drift 10s ease-in-out infinite;
}
.glow-2 {
    width: 420px; height: 420px;
    background: rgba(56, 189, 248, 0.10);
    bottom: -100px; left: -100px;
    animation: drift 12s ease-in-out infinite reverse;
}
.glow-3 {
    width: 300px; height: 300px;
    background: rgba(168, 85, 247, 0.08);
    top: 40%; left: 55%;
    animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(25px, -20px); }
    66% { transform: translate(-15px, 15px); }
}

/* Grid overlay */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(124, 92, 252, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 252, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
}

/* Rings */
.hero-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(124, 92, 252, 0.08);
    pointer-events: none;
}
.ring-1 {
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 6s ease-in-out infinite;
}
.ring-2 {
    width: 720px; height: 720px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 6s ease-in-out infinite 1.5s;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.04); }
}

/* Particles */
.particle {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: var(--primary);
}
.p1 { width: 6px; height: 6px; opacity: 0.25; top: 18%; left: 12%;  animation: floatUp 7s ease-in-out infinite; }
.p2 { width: 4px; height: 4px; opacity: 0.2;  top: 28%; right: 15%; animation: floatUp 9s ease-in-out infinite 1s; }
.p3 { width: 5px; height: 5px; opacity: 0.15; top: 65%; left: 20%;  animation: floatUp 8s ease-in-out infinite 2s; background: var(--accent); }
.p4 { width: 3px; height: 3px; opacity: 0.2;  top: 72%; right: 22%; animation: floatUp 10s ease-in-out infinite 0.5s; }
.p5 { width: 7px; height: 7px; opacity: 0.12; top: 45%; left: 8%;   animation: floatUp 11s ease-in-out infinite 3s; background: var(--accent); }
.p6 { width: 4px; height: 4px; opacity: 0.18; top: 35%; right: 8%;  animation: floatUp 8s ease-in-out infinite 1.5s; }
@keyframes floatUp {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 0.35; }
}

/* Hero content */
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
    background: rgba(124, 92, 252, 0.08);
    border: 1px solid rgba(124, 92, 252, 0.15);
    padding: 6px 18px; border-radius: 100px; margin-bottom: 28px;
}
.tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
    animation: tagPulse 2s ease-in-out infinite;
}
@keyframes tagPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px;
}
.dot-accent {
    color: var(--primary);
    font-size: 1.1em;
}
.hero-sub {
    font-size: 1.1rem; color: var(--text-soft);
    line-height: 1.7; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
    position: absolute; bottom: 36px; left: 50%;
    transform: translateX(-50%); z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-light);
}
.scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--primary-soft), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.6); }
}

/* BUTTONS */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #6344e8);
    color: var(--white); border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; font-family: inherit;
    text-decoration: none; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 92, 252, 0.35);
}
.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 14px 32px; color: var(--text-soft); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }

/* SECTIONS */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 12px;
}
.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub {
    color: var(--text-soft); font-size: 1rem;
    max-width: 520px; margin-bottom: 48px;
}

/* ABOUT */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}
.about-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px;
}
.about-text p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.8; }
.about-cards { display: flex; flex-direction: column; gap: 14px; }
.mini-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 22px; background: var(--card-bg);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    transition: all 0.25s;
}
.mini-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.mini-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.mini-card strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.mini-card p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 32px;
    position: relative; transition: all 0.25s;
}
.service-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.service-num {
    font-size: 3rem; font-weight: 900;
    color: rgba(124, 92, 252, 0.07); line-height: 1; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card > p {
    color: var(--text-soft); font-size: 0.9rem;
    line-height: 1.7; margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
    padding: 5px 14px; font-size: 0.75rem; font-weight: 600;
    color: var(--primary); background: rgba(124, 92, 252, 0.06);
    border: 1px solid rgba(124, 92, 252, 0.12); border-radius: 100px;
}

/* WORK */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: all 0.25s;
}
.work-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.work-badge {
    display: inline-block; align-self: flex-start;
    padding: 3px 10px; font-size: 0.65rem; font-weight: 700;
    color: var(--primary); background: rgba(124, 92, 252, 0.06);
    border-radius: 100px; margin-bottom: 14px; letter-spacing: 0.05em;
}
.work-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.work-card > p { color: var(--text-soft); font-size: 0.85rem; line-height: 1.6; flex: 1; }
.work-link {
    margin-top: 16px; font-size: 0.8rem; font-weight: 600;
    color: var(--primary); transition: transform 0.2s; display: inline-block;
}
.work-card:hover .work-link { transform: translateX(4px); }

/* CONTACT */
.contact-wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: start;
}
.contact-left h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.contact-left > p {
    color: var(--text-soft); font-size: 0.95rem;
    line-height: 1.7; margin-bottom: 32px;
}
.contact-info p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }
.contact-info strong { color: var(--text); }

.contact-form {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.9rem; color: var(--text);
    background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
    margin-top: 14px; font-size: 0.85rem;
    text-align: center; min-height: 20px;
}
.form-status.success { color: #22c55e; }
.form-status.error   { color: #ef4444; }

/* reCAPTCHA */
.recaptcha-wrap {
    margin: 8px 0 4px;
}

/* PRIVACY CHECKBOX */
.privacy-agree {
    margin: 24px 0 28px;
    position: relative;
}
.privacy-agree input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.privacy-agree label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.custom-check {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid #c4b5fd;
    border-radius: 6px;
    background: var(--white);
    position: relative;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.privacy-agree input:checked + label .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}
.privacy-agree input:checked + label .custom-check::after {
    content: '';
    display: block;
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.privacy-text {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
}
.privacy-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.privacy-text a:hover {
    color: var(--primary-soft);
}

/* DISABLED BUTTON */
.btn-primary:disabled {
    opacity: 0.45; cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
/* MODAL */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius);
    max-width: 560px; width: 100%; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 28px 0;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-light); cursor: pointer; line-height: 1;
    padding: 4px; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-body {
    padding: 20px 28px 28px; overflow-y: auto;
    font-size: 0.85rem; color: var(--text-soft); line-height: 1.7;
}
.modal-body h4 {
    font-size: 0.9rem; font-weight: 700; color: var(--text);
    margin: 18px 0 6px;
}
.modal-body p + p { margin-top: 8px; }

/* FOOTER */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.78rem; color: var(--text-light); }

/* ANIMATIONS */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(250, 251, 255, 0.97);
        backdrop-filter: blur(16px); padding: 20px 24px; gap: 14px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: flex; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-sub br { display: none; }
    .hide-sp { display: none; }
    .about-grid, .services-grid, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
    .work-grid { grid-template-columns: 1fr; gap: 14px; }
    .section { padding: 72px 0; }
    .hero { padding: 100px 24px 60px; }
    .hero-scroll { display: none; }
    .hero-ring { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .contact-form { padding: 28px 22px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
