@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root{
--bg:#050505;
--bg2:#0f0f14;
--card:rgba(20,20,25,.82);
--text:#ffffff;
--sub:#9ca3af;
--primary:#8b5cf6;
--accent:#f97316;
--border:rgba(255,255,255,.06);
--shadow:0 20px 40px rgba(0,0,0,.35);
}

body.light{
--bg:#f8fafc;
--bg2:#eef2ff;
--card:rgba(255,255,255,.88);
--text:#111827;
--sub:#475569;
--primary:#7c3aed;
--accent:#ea580c;
--border:rgba(0,0,0,.08);
--shadow:0 18px 35px rgba(0,0,0,.08);
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Inter',sans-serif;
transition:.35s ease;
}

html{
scroll-behavior:smooth;
}

body{
background:
linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
radial-gradient(circle at top left, rgba(139,92,246,.09), transparent 35%),
radial-gradient(circle at bottom right, rgba(249,115,22,.08), transparent 35%),
linear-gradient(135deg,var(--bg),var(--bg2));
background-size:40px 40px,40px 40px,100% 100%,100% 100%,100% 100%;
color:var(--text);
overflow-x:hidden;
}

/* BACKGROUND */

.bg-wrapper{
position:fixed;
inset:0;
z-index:-10;
overflow:hidden;
}

.sphere{
position:absolute;
border-radius:50%;
filter:blur(120px);
animation:float 16s infinite ease-in-out;
}

.s1{
width:380px;
height:380px;
background:rgba(139,92,246,.12);
top:-80px;
left:-100px;
}

.s2{
width:320px;
height:320px;
background:rgba(249,115,22,.10);
right:-80px;
bottom:-80px;
}

.s3{
width:260px;
height:260px;
background:rgba(236,72,153,.08);
top:50%;
left:45%;
}

@keyframes float{
50%{
transform:translateY(-40px);
}
}

#particles{
position:absolute;
width:100%;
height:100%;
}

/* NAVBAR */

.navbar{
position:sticky;
top:0;
padding:20px 8%;
display:flex;
justify-content:space-between;
align-items:center;
backdrop-filter:blur(18px);
background:rgba(10,10,10,.7);
border-bottom:1px solid var(--border);
z-index:100;
}

body.light .navbar{
background:rgba(255,255,255,.75);
}

.logo-box{
display:flex;
align-items:center;
gap:14px;
font-weight:800;
font-size:1.1rem;
}

.logo-icon{
width:38px;
height:38px;
border-radius:12px;
background:
conic-gradient(
from 180deg,
var(--primary),
var(--accent),
var(--primary)
);
transform:rotate(15deg);
box-shadow:
0 0 20px rgba(139,92,246,.25);
animation:spinGlow 6s linear infinite;
}

@keyframes spinGlow{
100%{
transform:rotate(375deg);
}
}

.nav-links{
display:flex;
gap:28px;
}

.nav-links a{
text-decoration:none;
color:var(--text);
font-weight:500;
position:relative;
}

.nav-links a::after{
content:'';
position:absolute;
left:0;
bottom:-4px;
width:0;
height:2px;
background:var(--accent);
transition:.3s;
}

.nav-links a:hover::after{
width:100%;
}

/* TOGGLE */

.theme-toggle{
width:64px;
height:34px;
border:none;
border-radius:40px;
background:rgba(255,255,255,.05);
border:1px solid var(--border);
cursor:pointer;
display:flex;
align-items:center;
padding:4px;
box-shadow:inset 0 0 14px rgba(0,0,0,.25);
}

.toggle-circle{
width:24px;
height:24px;
border-radius:50%;
background:linear-gradient(135deg,var(--primary),var(--accent));
box-shadow:
0 0 16px rgba(139,92,246,.35),
0 0 26px rgba(249,115,22,.18);
}

/* HERO */

.hero{
min-height:100vh;
display:grid;
grid-template-columns:1.1fr 1fr;
align-items:center;
padding:6% 8%;
gap:80px;
}

.badge{
display:inline-block;
padding:10px 18px;
border-radius:30px;
background:rgba(139,92,246,.08);
border:1px solid rgba(139,92,246,.16);
color:var(--accent);
font-size:.78rem;
margin-bottom:25px;
}

.hero h1{
font-size:4.5rem;
font-weight:900;
line-height:1.03;
letter-spacing:-2px;
margin-bottom:22px;
}

.hero p{
font-size:1.1rem;
line-height:1.8;
color:var(--sub);
max-width:560px;
}

.hero-buttons{
display:flex;
gap:18px;
margin:35px 0;
}

.primary-btn,
.note-box button,
.contact-form button{
padding:16px 30px;
border:none;
border-radius:16px;
background:linear-gradient(135deg,var(--primary),var(--accent));
color:white;
font-weight:700;
cursor:pointer;
box-shadow:var(--shadow);
}

.secondary-btn{
padding:16px 30px;
border-radius:16px;
background:transparent;
color:var(--text);
border:1px solid var(--border);
cursor:pointer;
}

.primary-btn:hover,
.secondary-btn:hover{
transform:translateY(-5px);
}

.stats{
display:flex;
gap:40px;
margin-top:24px;
}

.stats h2{
color:var(--accent);
font-size:2rem;
}

/* DASHBOARD */

.dashboard-preview{
background:var(--card);
padding:30px;
border-radius:26px;
border:1px solid var(--border);
box-shadow:var(--shadow);
backdrop-filter:blur(22px);
}

.dashboard-top{
display:flex;
gap:10px;
margin-bottom:20px;
}

.dashboard-top span{
width:12px;
height:12px;
border-radius:50%;
background:var(--accent);
}

.mini-card{
padding:18px;
background:rgba(255,255,255,.03);
border-radius:18px;
margin-bottom:18px;
}

.mini-chart{
height:180px;
border-radius:18px;
background:
linear-gradient(135deg,
rgba(139,92,246,.18),
rgba(249,115,22,.12));
position:relative;
overflow:hidden;
}

.mini-chart::after{
content:'';
position:absolute;
inset:0;
background:
repeating-linear-gradient(
90deg,
transparent,
transparent 18px,
rgba(255,255,255,.03) 20px
);
animation:gridMove 10s linear infinite;
}

@keyframes gridMove{
100%{
transform:translateX(80px);
}
}

/* SECTIONS */

.section{
padding:100px 8%;
}

.section h2{
font-size:2.8rem;
text-align:center;
margin-bottom:30px;
}

.section p{
text-align:center;
max-width:760px;
margin:auto;
color:var(--sub);
line-height:1.8;
}

/* WORKSPACE */

.workspace-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
margin-top:45px;
}

.glass-card{
background:
linear-gradient(
145deg,
rgba(255,255,255,.04),
rgba(255,255,255,.015)
);
padding:38px;
border-radius:26px;
border:1px solid var(--border);
backdrop-filter:blur(24px);
box-shadow:var(--shadow);
}

.glass-card:hover{
transform:translateY(-10px);
}

/* INPUTS */

input,
textarea,
select{
width:100%;
padding:16px;
border-radius:16px;
border:1px solid var(--border);
background:rgba(255,255,255,.03);
color:var(--text);
margin-bottom:16px;
outline:none;
}

select option{
background:var(--bg);
color:var(--text);
}

input::placeholder,
textarea::placeholder{
color:var(--sub);
}

/* NOTES */

.note-box{
display:flex;
gap:12px;
}

#noteList div{
background:rgba(255,255,255,.025);
padding:16px;
margin-top:14px;
border-radius:16px;
border-left:4px solid var(--primary);
}

#noteList div:hover{
transform:translateX(8px) scale(1.02);
border-left-color:var(--accent);
}

.note-delete{
cursor:pointer;
font-size:1.2rem;
color:#ef4444;
}

/* PRODUCTS */

.controls{
display:flex;
gap:12px;
margin-bottom:18px;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:18px;
}

.product-card{
padding:22px;
background:rgba(255,255,255,.03);
border-radius:18px;
border:1px solid transparent;
}

.product-card:hover{
transform:translateY(-8px);
border-color:var(--accent);
box-shadow:0 0 18px rgba(249,115,22,.12);
}

/* FOOTER */

footer{
padding:45px;
text-align:center;
color:var(--sub);
border-top:1px solid var(--border);
}

/* RESPONSIVE */

@media(max-width:1000px){

.hero,
.workspace-grid{
grid-template-columns:1fr;
text-align:center;
}

.hero-buttons,
.stats{
justify-content:center;
}

.nav-links{
display:none;
}

.hero h1{
font-size:3rem;
}

.note-box,
.controls{
flex-direction:column;
}
}
