*, *::before, *::after {
box-sizing: border-box;
}
body {
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 0;
background: #040914;
color: #f8fafc;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 60px 20px;
overflow-x: hidden;
}
.ai-vision-app {
position: relative;
width: 100%;
max-width: 900px;
display: flex;
flex-direction: column;
align-items: center;
z-index: 2;
}
.ambient-glow {
position: fixed;
top: -10%;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 400px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
z-index: 1;
pointer-events: none;
transition: all 1s ease;
}
.ambient-glow.pulse-glow {
background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(99, 102, 241, 0.2) 40%, transparent 70%);
transform: translateX(-50%) scale(1.2);
}
.creation-station {
width: 100%;
position: relative;
z-index: 10;
margin-bottom: 60px;
}
.prompt-header {
text-align: center;
margin-bottom: 24px;
}
.ai-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(99, 102, 241, 0.1);
color: #818cf8;
padding: 6px 16px;
border-radius: 30px;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 16px;
border: 1px solid rgba(99, 102, 241, 0.2);
}
.prompt-header h2 {
font-size: 3rem;
font-weight: 700;
margin: 0;
letter-spacing: -1px;
background: linear-gradient(135deg, #ffffff, #94a3b8);
color: transparent;
background-clip: text;
-webkit-background-clip: text;
}
/* The Magic Wrapper for Conic Border */
.prompt-wrapper {
position: relative;
background: rgba(255, 255, 255, 0.05);
border-radius: 28px;
padding: 2px; /* This creates the border thickness */
overflow: hidden;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
transition: transform 0.3s ease;
}
.prompt-wrapper::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 200%;
height: 200%;
background: rgba(255, 255, 255, 0.1);
transform: translate(-50%, -50%);
z-index: 0;
transition: opacity 0.3s;
}
.prompt-wrapper.is-generating {
transform: translateY(-5px);
box-shadow: 0 40px 80px rgba(99, 102, 241, 0.2);
}
.prompt-wrapper.is-generating::before {
background: conic-gradient(from 0deg, transparent 0%, #6366f1 25%, #ec4899 50%, #6366f1 75%, transparent 100%);
animation: border-spin 3s linear infinite;
}
@keyframes border-spin {
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.prompt-inner {
position: relative;
background: #0f172a;
border-radius: 26px;
padding: 24px;
z-index: 2;
display: flex;
flex-direction: column;
gap: 20px;
}
.prompt-box {
width: 100%;
background: transparent;
border: none;
color: #f8fafc;
font-family: inherit;
font-size: 1.25rem;
line-height: 1.6;
resize: none;
outline: none;
min-height: 80px;
}
.prompt-box::placeholder {
color: #475569;
}
.prompt-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.setting-pill {
color: #64748b;
font-size: 0.9rem;
font-weight: 500;
background: rgba(255, 255, 255, 0.03);
padding: 8px 16px;
border-radius: 12px;
}
.generate-btn {
background: #f8fafc;
color: #0f172a;
border: none;
padding: 14px 28px;
border-radius: 16px;
font-weight: 700;
font-size: 1.05rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.generate-btn:hover {
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}
.prompt-wrapper.is-generating .generate-btn {
background: #334155;
color: #94a3b8;
pointer-events: none;
box-shadow: none;
}
.gallery-showcase {
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 240px;
gap: 24px;
position: relative;
z-index: 10;
}
.empty-state {
grid-column: span 3;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #475569;
height: 300px;
}
.empty-state p {
margin-top: 20px;
font-size: 1.25rem;
}
.result-card, .skeleton-card {
border-radius: 24px;
overflow: hidden;
position: relative;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.feat-main {
grid-column: span 2;
grid-row: span 2;
}
.skeleton-card {
background: #0f172a;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.skeleton-card::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(110deg, transparent 20%, rgba(99, 102, 241, 0.15) 50%, transparent 80%);
transform: translateX(-100%);
animation: shimmer 2s infinite ease-in-out;
}
@keyframes shimmer {
100% { transform: translateX(100%); }
}
.result-img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transform: scale(1.05);
animation: reveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes reveal {
to { opacity: 1; transform: scale(1); }
}